mirror of https://git.jolheiser.com/dotnix.git
parent
e368754c8c
commit
2e9cc88688
|
@ -34,6 +34,7 @@
|
||||||
"nushell/ssh.nu".source = ./nushell/ssh.nu;
|
"nushell/ssh.nu".source = ./nushell/ssh.nu;
|
||||||
"nushell/miniserve.nu".source = ./nushell/miniserve.nu;
|
"nushell/miniserve.nu".source = ./nushell/miniserve.nu;
|
||||||
"nushell/clone.nu".source = ./nushell/clone.nu;
|
"nushell/clone.nu".source = ./nushell/clone.nu;
|
||||||
|
"nushell/git-bug.nu".source = ./nushell/git-bug.nu;
|
||||||
"nushell/ohmyposh.nu".source = ./nushell/ohmyposh.nu;
|
"nushell/ohmyposh.nu".source = ./nushell/ohmyposh.nu;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,69 @@
|
||||||
|
export def "git bug init" [] {
|
||||||
|
^git config --add remote.origin.fetch "refs/bugs/*:refs/bugs/*"
|
||||||
|
^git config --add remote.origin.fetch "refs/identities/*:refs/identities/*"
|
||||||
|
^git config --add remote.origin.push "refs/bugs/*:refs/bugs/*"
|
||||||
|
^git config --add remote.origin.push "refs/identitites/*:refs/identities/*"
|
||||||
|
^git fetch
|
||||||
|
let id = ^git-bug user -f json | from json | where name == 'jolheiser' | get -i human_id.0
|
||||||
|
if ($id | is-not-empty) {
|
||||||
|
^git-bug user adopt $id
|
||||||
|
} else {
|
||||||
|
^git-bug user new --name 'jolheiser' --email 'git@jolheiser.com' --avatar 'https://www.libravatar.org/avatar/cc498b605dee7b6fb9e6422332691bb4'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def "bug-id" [] {
|
||||||
|
^git-bug bug --format json | from json | each {|bug| { value: $bug.human_id, description: $bug.title }}
|
||||||
|
}
|
||||||
|
|
||||||
|
export extern "git bug bug status" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug status open" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug status close" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug rm" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "gitbug bug comment" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug comment new" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug label" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug label new" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug label rm" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug select" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug show" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug title" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
||||||
|
|
||||||
|
export extern "git bug bug title edit" [
|
||||||
|
bug_id: string@bug-id
|
||||||
|
]
|
|
@ -63,3 +63,4 @@ source ~/.config/nushell/ohmyposh.nu
|
||||||
source ~/.config/nushell/ssh.nu
|
source ~/.config/nushell/ssh.nu
|
||||||
source ~/.config/nushell/miniserve.nu
|
source ~/.config/nushell/miniserve.nu
|
||||||
source ~/.config/nushell/clone.nu
|
source ~/.config/nushell/clone.nu
|
||||||
|
source ~/.config/nushell/git-bug.nu
|
||||||
|
|
Loading…
Reference in New Issue