{
  "description": "Start or stop a tmux session from a project file. Creating, editing and printing projects, and custom ${variable} settings, are left out.",
  "name": "smug",
  "subcommands": [
    {
      "name": "start",
      "description": "Start a project from ~/.config/smug or a custom file.",
      "options": [
        {
          "names": [
            "--file",
            "-f"
          ],
          "description": "Config file",
          "args": {
            "name": "file",
            "isOptional": false,
            "template": "filepaths"
          }
        },
        {
          "names": [
            "--windows",
            "-w"
          ],
          "description": "Only these windows",
          "args": {
            "name": "windows",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        },
        {
          "names": [
            "--worktree"
          ],
          "description": "Git worktree (branch or directory)",
          "args": {
            "name": "worktree",
            "isOptional": false
          }
        },
        {
          "names": [
            "--attach",
            "-a"
          ],
          "description": "Force switch client"
        },
        {
          "names": [
            "--detach"
          ],
          "description": "Detach session"
        },
        {
          "names": [
            "--inside-current-session",
            "-i"
          ],
          "description": "Create windows inside current session"
        },
        {
          "names": [
            "--debug",
            "-d"
          ],
          "description": "Log commands to smug.log"
        }
      ],
      "args": [
        {
          "name": "project",
          "isOptional": true
        }
      ]
    },
    {
      "name": "stop",
      "description": "Stop a project session, or only some windows.",
      "options": [
        {
          "names": [
            "--file",
            "-f"
          ],
          "description": "Config file",
          "args": {
            "name": "file",
            "isOptional": false,
            "template": "filepaths"
          }
        },
        {
          "names": [
            "--windows",
            "-w"
          ],
          "description": "Only these windows",
          "args": {
            "name": "windows",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        }
      ],
      "args": [
        {
          "name": "project",
          "isOptional": true
        }
      ]
    }
  ]
}
