{
  "id": "podman",
  "name": "Podman",
  "homepage": "https://podman.io",
  "description": "Manage containers, pods, and images with Podman.",
  "icon": "theSVG:podman",
  "executables": [
    "podman"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/containers/containers.conf",
      "[configHome]/containers/containers.conf.d/",
      "[configHome]/containers/storage.conf",
      "[configHome]/containers/registries.conf",
      "[configHome]/containers/policy.json"
    ],
    "secret": [
      "[configHome]/containers/auth.json"
    ],
    "machine_lines": [
      {
        "file": "[configHome]/containers/storage.conf",
        "format": "toml",
        "match": {
          "key_path": [
            "storage.graphroot",
            "storage.runroot"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Podman",
    "description": "Run, inspect, build and stop containers. Pods, machines, volumes, networks and registry login are left out.",
    "quality": "ai-draft",
    "base": "fig:podman",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/podman.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "run"
        ],
        "label": "Run a container",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/podman.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "image",
            "label": "Image",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "command",
            "label": "Command and arguments",
            "type": "string",
            "position": 1,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "name",
            "label": "Name",
            "type": "string",
            "option": [
              "--name"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "detach",
            "label": "Run in background",
            "type": "boolean",
            "option": [
              "--detach",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "rm",
            "label": "Remove when it exits",
            "type": "boolean",
            "option": [
              "--rm"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "interactive",
            "label": "Keep STDIN open",
            "type": "boolean",
            "option": [
              "--interactive",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tty",
            "label": "Allocate a TTY",
            "type": "boolean",
            "option": [
              "--tty",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "publish",
            "label": "Publish ports",
            "type": "string",
            "option": [
              "--publish",
              "-p"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "volume",
            "label": "Bind mounts",
            "type": "string",
            "option": [
              "--volume",
              "-v"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment variables",
            "type": "string",
            "option": [
              "--env",
              "-e"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "workdir",
            "label": "Working directory",
            "type": "string",
            "option": [
              "--workdir",
              "-w"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "network",
            "label": "Network",
            "type": "string",
            "option": [
              "--network"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "user",
            "label": "User",
            "type": "string",
            "option": [
              "--user",
              "-u"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "interactive",
            "label": "Interactive, removed after",
            "set": {
              "interactive": [
                true
              ],
              "tty": [
                true
              ],
              "rm": [
                true
              ]
            },
            "fields": [
              "image",
              "command",
              "interactive",
              "tty",
              "rm"
            ],
            "required": [
              "image"
            ]
          },
          {
            "id": "service",
            "label": "Background service",
            "set": {
              "detach": [
                true
              ]
            },
            "fields": [
              "image",
              "name",
              "detach",
              "publish",
              "volume",
              "env"
            ],
            "required": [
              "image"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "image",
              "command",
              "name",
              "detach",
              "rm",
              "interactive"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "tty",
              "publish",
              "volume",
              "env",
              "workdir",
              "network",
              "user"
            ]
          }
        ]
      },
      {
        "path": [
          "ps"
        ],
        "label": "List containers",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/podman.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "all",
            "label": "Include stopped",
            "type": "boolean",
            "option": [
              "--all",
              "-a"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "IDs only",
            "type": "boolean",
            "option": [
              "--quiet",
              "-q"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "latest",
            "label": "Latest only",
            "type": "boolean",
            "option": [
              "--latest",
              "-l"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "size",
            "label": "Show sizes",
            "type": "boolean",
            "option": [
              "--size",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_trunc",
            "label": "Do not truncate",
            "type": "boolean",
            "option": [
              "--no-trunc"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "filter",
            "label": "Filter",
            "type": "string",
            "option": [
              "--filter",
              "-f"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "format",
            "label": "Go template",
            "type": "string",
            "option": [
              "--format"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "ps",
            "label": "List all",
            "set": {
              "all": [
                true
              ]
            },
            "fields": [
              "all",
              "quiet"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "all",
              "quiet",
              "latest",
              "size"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "no_trunc",
              "filter",
              "format"
            ]
          }
        ]
      },
      {
        "path": [
          "build"
        ],
        "label": "Build an image",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/podman.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "context",
            "label": "Build context",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tag",
            "label": "Tag",
            "type": "string",
            "option": [
              "--tag",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "file",
            "label": "Containerfile",
            "type": "path",
            "option": [
              "--file",
              "-f"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_cache",
            "label": "No cache",
            "type": "boolean",
            "option": [
              "--no-cache"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "pull",
            "label": "Always pull base",
            "type": "boolean",
            "option": [
              "--pull"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "platform",
            "label": "Platform",
            "type": "string",
            "option": [
              "--platform"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "target",
            "label": "Target stage",
            "type": "string",
            "option": [
              "--target"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "build_arg",
            "label": "Build args",
            "type": "string",
            "option": [
              "--build-arg"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "boolean",
            "option": [
              "--quiet",
              "-q"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "build",
            "label": "Build and tag",
            "fields": [
              "context",
              "tag",
              "file",
              "no_cache"
            ],
            "required": [
              "context",
              "tag"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "context",
              "tag",
              "file",
              "no_cache"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "pull",
              "platform",
              "target",
              "build_arg",
              "quiet"
            ]
          }
        ]
      },
      {
        "path": [
          "logs"
        ],
        "label": "Container logs",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/podman.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "container",
            "label": "Container",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "follow",
            "label": "Follow",
            "type": "boolean",
            "option": [
              "--follow",
              "-f"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "timestamps",
            "label": "Timestamps",
            "type": "boolean",
            "option": [
              "--timestamps",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "since",
            "label": "Since",
            "type": "string",
            "option": [
              "--since"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "until",
            "label": "Until",
            "type": "string",
            "option": [
              "--until"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "follow",
            "label": "Follow logs",
            "set": {
              "follow": [
                true
              ]
            },
            "fields": [
              "container",
              "follow",
              "timestamps"
            ],
            "required": [
              "container"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "container",
              "follow",
              "timestamps",
              "since",
              "until"
            ]
          }
        ]
      },
      {
        "path": [
          "exec"
        ],
        "label": "Exec in a container",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/podman.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "container",
            "label": "Container",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "command",
            "label": "Command and arguments",
            "type": "string",
            "position": 1,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "interactive",
            "label": "Keep STDIN open",
            "type": "boolean",
            "option": [
              "--interactive",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tty",
            "label": "Allocate a TTY",
            "type": "boolean",
            "option": [
              "--tty",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment variables",
            "type": "string",
            "option": [
              "--env",
              "-e"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "workdir",
            "label": "Working directory",
            "type": "string",
            "option": [
              "--workdir",
              "-w"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "shell",
            "label": "Interactive command",
            "set": {
              "interactive": [
                true
              ],
              "tty": [
                true
              ]
            },
            "fields": [
              "container",
              "command",
              "interactive",
              "tty",
              "env",
              "workdir"
            ],
            "required": [
              "container",
              "command"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "container",
              "command",
              "interactive",
              "tty",
              "env"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "workdir"
            ]
          }
        ]
      },
      {
        "path": [
          "stop"
        ],
        "label": "Stop containers",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/podman.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "containers",
            "label": "Containers",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "time",
            "label": "Seconds before kill",
            "type": "integer",
            "option": [
              "-t"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "stop",
            "label": "Stop",
            "fields": [
              "containers",
              "time"
            ],
            "required": [
              "containers"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "containers",
              "time"
            ]
          }
        ]
      }
    ]
  }
}
