Add (some) podman completions
parent
ed2799efb3
commit
86ef6738f5
@ -0,0 +1 @@
|
||||
source podman.nu
|
@ -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
|
||||
]
|
Loading…
Reference in New Issue