Skip to content

Commit 826c79f

Browse files
docs(cable): update channel documentation (auto) (#956)
This PR was created by a GitHub Action to update the channel documentation. Co-authored-by: alexpasmantier <47638216+alexpasmantier@users.noreply.github.com>
1 parent 41ac577 commit 826c79f

1 file changed

Lines changed: 192 additions & 0 deletions

File tree

docs/community/channels-unix.md

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2325,6 +2325,198 @@ mode = "execute"
23252325
```
23262326

23272327

2328+
---
2329+
2330+
### *podman-containers*
2331+
2332+
List and manage Podman containers
2333+
2334+
**Requirements:** `podman`, `jq`
2335+
2336+
**Code:** *podman-containers.toml*
2337+
2338+
```toml
2339+
[metadata]
2340+
name = "podman-containers"
2341+
description = "List and manage Podman containers"
2342+
requirements = [ "podman", "jq",]
2343+
2344+
[source]
2345+
command = [ "podman ps --format '{{.Names}}\t{{.Image}}\t{{.Status}}'", "podman ps -a --format '{{.Names}}\t{{.Image}}\t{{.Status}}'",]
2346+
display = "{split:\t:0} ({split:\t:2})"
2347+
output = "{split:\t:0}"
2348+
2349+
[preview]
2350+
command = "podman inspect '{split:\t:0}' | jq -C '.[0] | {Name, State, Config: {Image: .Config.Image, Cmd: .Config.Cmd}, NetworkSettings: {IPAddress: .NetworkSettings.IPAddress}}'"
2351+
2352+
[ui]
2353+
layout = "portrait"
2354+
2355+
[keybindings]
2356+
ctrl-s = "actions:start"
2357+
f2 = "actions:stop"
2358+
ctrl-r = "actions:restart"
2359+
ctrl-l = "actions:logs"
2360+
ctrl-e = "actions:exec"
2361+
ctrl-d = "actions:remove"
2362+
2363+
[actions.start]
2364+
description = "Start the selected container"
2365+
command = "podman start '{split:\t:0}'"
2366+
mode = "fork"
2367+
2368+
[actions.stop]
2369+
description = "Stop the selected container"
2370+
command = "podman stop '{split:\t:0}'"
2371+
mode = "fork"
2372+
2373+
[actions.restart]
2374+
description = "Restart the selected container"
2375+
command = "podman restart '{split:\t:0}'"
2376+
mode = "fork"
2377+
2378+
[actions.logs]
2379+
description = "Follow logs of the selected container"
2380+
command = "podman logs -f '{split:\t:0}'"
2381+
mode = "execute"
2382+
2383+
[actions.exec]
2384+
description = "Execute shell in the selected container"
2385+
command = "podman exec -it '{split:\t:0}' /bin/sh"
2386+
mode = "execute"
2387+
2388+
[actions.remove]
2389+
description = "Remove the selected container"
2390+
command = "podman rm '{split:\t:0}'"
2391+
mode = "execute"
2392+
2393+
```
2394+
2395+
2396+
---
2397+
2398+
### *podman-images*
2399+
2400+
A channel to select from Podman images
2401+
2402+
**Requirements:** `podman`, `jq`
2403+
2404+
**Code:** *podman-images.toml*
2405+
2406+
```toml
2407+
[metadata]
2408+
name = "podman-images"
2409+
description = "A channel to select from Podman images"
2410+
requirements = [ "podman", "jq",]
2411+
2412+
[source]
2413+
command = "podman images --format '{{.Repository}}:{{.Tag}} {{.ID}}'"
2414+
output = "{split: :-1}"
2415+
2416+
[preview]
2417+
command = "podman image inspect '{split: :-1}' | jq -C"
2418+
2419+
[ui]
2420+
layout = "portrait"
2421+
2422+
[keybindings]
2423+
ctrl-r = "actions:run"
2424+
ctrl-d = "actions:remove"
2425+
ctrl-s = "actions:shell"
2426+
2427+
[actions.run]
2428+
description = "Run a container from the selected image"
2429+
command = "podman run -it '{split: :-1}'"
2430+
mode = "execute"
2431+
2432+
[actions.shell]
2433+
description = "Run a shell in the selected image"
2434+
command = "podman run -it '{split: :-1}' /bin/sh"
2435+
mode = "execute"
2436+
2437+
[actions.remove]
2438+
description = "Remove the selected image"
2439+
command = "podman rmi '{split: :-1}'"
2440+
mode = "execute"
2441+
2442+
```
2443+
2444+
2445+
---
2446+
2447+
### *podman-networks*
2448+
2449+
List and manage Podman networks
2450+
2451+
**Requirements:** `podman`, `jq`
2452+
2453+
**Code:** *podman-networks.toml*
2454+
2455+
```toml
2456+
[metadata]
2457+
name = "podman-networks"
2458+
description = "List and manage Podman networks"
2459+
requirements = [ "podman", "jq",]
2460+
2461+
[source]
2462+
command = "podman network ls --format '{{.Name}}\t{{.Driver}}\t{{.Internal}}'"
2463+
display = "{split:\t:0} ({split:\t:1})"
2464+
output = "{split:\t:0}"
2465+
2466+
[preview]
2467+
command = "podman network inspect '{split:\t:0}' | jq -C '.[0] | {name, driver, subnets, dns_enabled, internal}'"
2468+
2469+
[ui]
2470+
layout = "portrait"
2471+
2472+
[actions.remove]
2473+
description = "Remove the selected network"
2474+
command = "podman network rm '{split:\t:0}'"
2475+
mode = "execute"
2476+
2477+
```
2478+
2479+
2480+
---
2481+
2482+
### *podman-volumes*
2483+
2484+
List and manage Podman volumes
2485+
2486+
**Requirements:** `podman`, `jq`
2487+
2488+
**Code:** *podman-volumes.toml*
2489+
2490+
```toml
2491+
[metadata]
2492+
name = "podman-volumes"
2493+
description = "List and manage Podman volumes"
2494+
requirements = [ "podman", "jq",]
2495+
2496+
[source]
2497+
command = "podman volume ls --format '{{.Name}}\t{{.Driver}}'"
2498+
display = "{split:\t:0} ({split:\t:1})"
2499+
output = "{split:\t:0}"
2500+
2501+
[preview]
2502+
command = "podman volume inspect '{split:\t:0}' | jq -C '.[0]'"
2503+
2504+
[ui]
2505+
layout = "portrait"
2506+
2507+
[actions.remove]
2508+
description = "Remove the selected volume"
2509+
command = "podman volume rm '{split:\t:0}'"
2510+
mode = "execute"
2511+
2512+
[actions.inspect]
2513+
description = "Inspect the selected volume in a pager"
2514+
command = "podman volume inspect '{split:\t:0}' | jq -C '.[0]' | less -R"
2515+
mode = "execute"
2516+
2517+
```
2518+
2519+
23282520
---
23292521

23302522
### *ports*

0 commit comments

Comments
 (0)