mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:34:58 +02:00
@ -1,6 +1,6 @@
|
||||
use nu_plugin::{serve_plugin, CapnpSerializer};
|
||||
use nu_plugin::{serve_plugin, JsonSerializer};
|
||||
use nu_plugin_gstat::GStat;
|
||||
|
||||
fn main() {
|
||||
serve_plugin(&mut GStat::new(), CapnpSerializer {})
|
||||
serve_plugin(&mut GStat::new(), JsonSerializer {})
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ impl Plugin for GStat {
|
||||
fn signature(&self) -> Vec<Signature> {
|
||||
vec![Signature::build("gstat")
|
||||
.desc("Get the git status of a repo")
|
||||
.optional("path", SyntaxShape::String, "path to repo")
|
||||
.optional("path", SyntaxShape::Filepath, "path to repo")
|
||||
.category(Category::Custom("Prompt".to_string()))]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user