Skip to content

Commit

Permalink
fix(docker): Suggestions for ps & -d option for run (withfig#618)
Browse files Browse the repository at this point in the history
* refactor(docker): Remove useless suggestions (closes withfig#570)

* feat(docker): Add common -d option to docker run
  • Loading branch information
QuiiBz authored Sep 29, 2021
1 parent ccbcf8b commit 31c2e74
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1271,16 +1271,6 @@ const sharedCommands: Record<string, Fig.Subcommand> = {
args: {
isVariadic: true,
name: "containers",
suggestions: [
{
name: "$(docker ps -aq)",
description: "All containers, running and exited",
},
{
name: "$(docker ps -q)",
description: "All running containers",
},
],
generators: dockerGenerators.allDockerContainers,
},
options: [
Expand All @@ -1303,14 +1293,17 @@ const sharedCommands: Record<string, Fig.Subcommand> = {
name: "run",
description: "Run a command in a new container",
options: [
{
name: ["-d", "--detach"],
description: "Run container in background and print container ID",
},
{
name: ["-i", "--interactive"],
description: "Keep STDIN open even if not attached",
},
{ name: ["-t", "--tty"], description: "Allocate a pseudo-TTY" },
{
name: "-it",

description: "Launch an interactive session",
icon: "fig:https://icon?type=commandkey",
},
Expand Down

0 comments on commit 31c2e74

Please sign in to comment.