Add (some) podman completions

main
trivernis 2 years ago
parent ed2799efb3
commit 86ef6738f5
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -0,0 +1,26 @@
def all_container_names [] {
podman container ls --all --format json | from json | get Names | each { get 0 }
}
def running_container_names [] {
podman container ls --format json | from json | get Names | each { get 0 }
}
export extern "podman start" [
container: string@all_container_names
--help
-a --attach
--detach-keys
-f:string --filter:string
-i --interactive
-l --latest
]
export extern "podman stop" [
container: string@running_container_names
-a --all
--cidfile: list
-i --ignore
-l --latest
-t: number --time: number
]

@ -511,6 +511,9 @@ let-env config = {
]
}
# Completions
source ~/.config/nushell/completions/completions.nu
# Environment
source ~/.config/nushell/path.nu
@ -527,4 +530,4 @@ source ~/.config/nushell/thefuck.nu
source ~/.config/nushell/aliases.nu
# motd
source ~/.config/nushell/motd.nu
source ~/.config/nushell/motd.nu
Loading…
Cancel
Save