1
Fork 0
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:
fj0r 2023-11-18 10:47:01 +08:00 committed by GitHub
parent 09d6c7e437
commit 9d02fb1ef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 16 deletions

View file

@ -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} }