mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00:00
rename cmd parse
to argx
to improve importing (#671)
- imports `*` are unnecessary - shorter names for easier reference in task scripts - `cmd` is too common and may cause potential conflicts Co-authored-by: nash <nash@iffy.me>
This commit is contained in:
parent
09d6c7e437
commit
9d02fb1ef8
3 changed files with 16 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
use cmd_parse.nu *
|
||||
use argx.nu
|
||||
|
||||
def agree [
|
||||
prompt
|
||||
|
@ -632,7 +632,7 @@ export def remote_braches [] {
|
|||
}
|
||||
|
||||
def "nu-complete git remote branches" [context: string, offset: int] {
|
||||
let ctx = ($context | cmd parse)
|
||||
let ctx = ($context | argx parse)
|
||||
let rb = (remote_braches)
|
||||
if ($ctx._args | length) < 3 {
|
||||
$rb | each {|x| {value: $x.1, description: $x.0} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue