Skip to content

Commit 31c2e74

Browse files
authored
fix(docker): Suggestions for ps & -d option for run (withfig#618)
* refactor(docker): Remove useless suggestions (closes withfig#570) * feat(docker): Add common -d option to docker run
1 parent ccbcf8b commit 31c2e74

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/docker.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,16 +1271,6 @@ const sharedCommands: Record<string, Fig.Subcommand> = {
12711271
args: {
12721272
isVariadic: true,
12731273
name: "containers",
1274-
suggestions: [
1275-
{
1276-
name: "$(docker ps -aq)",
1277-
description: "All containers, running and exited",
1278-
},
1279-
{
1280-
name: "$(docker ps -q)",
1281-
description: "All running containers",
1282-
},
1283-
],
12841274
generators: dockerGenerators.allDockerContainers,
12851275
},
12861276
options: [
@@ -1303,14 +1293,17 @@ const sharedCommands: Record<string, Fig.Subcommand> = {
13031293
name: "run",
13041294
description: "Run a command in a new container",
13051295
options: [
1296+
{
1297+
name: ["-d", "--detach"],
1298+
description: "Run container in background and print container ID",
1299+
},
13061300
{
13071301
name: ["-i", "--interactive"],
13081302
description: "Keep STDIN open even if not attached",
13091303
},
13101304
{ name: ["-t", "--tty"], description: "Allocate a pseudo-TTY" },
13111305
{
13121306
name: "-it",
1313-
13141307
description: "Launch an interactive session",
13151308
icon: "fig://icon?type=commandkey",
13161309
},

0 commit comments

Comments
 (0)