{
  "id": "gnunet",
  "name": "GNUnet",
  "homepage": "https://www.gnunet.org/",
  "description": "GNUnet is a network protocol stack for building secure, distributed, and privacy-preserving applications.",
  "executables": [
    "gnunet-arm",
    "gnunet-config",
    "gnunet-setup"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/gnunet.conf"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Control GNUnet services (gnunet-arm)",
    "description": "Start, stop or inspect GNUnet services through the ARM supervisor. Timeout and output-inheritance options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/gnunet/gnunet-arm.1.en.html",
        "revision": "0.20.0-9",
        "evidence": "-c FILENAME | --config=FILENAME\nUse the configuration file FILENAME.\n-e | --end\nShutdown all GNUnet services (including ARM itself).\n-i SERVICE | --init=SERVICE\nStarts the specified SERVICE if it is not already running.\n-I | --info\nList all running services.\n-k SERVICE | --kill=SERVICE\nStop SERVICE if it is running.\n-L LOGLEVEL | --loglevel=LOGLEVEL\nUse LOGLEVEL for logging. Valid values are DEBUG, INFO, WARNING and ERROR.\n-l FILENAME | --logfile=FILENAME\nWrite logs to FILENAME.\n-m | --monitor\nMonitor service activity of ARM.\n-q | --quiet\nDon't print status messages.\n-r | --restart\nStop and start all GNUnet default services.\n-s | --start\nStart all GNUnet default services on this system (and also ARM).\n"
      }
    ],
    "field": [
      {
        "id": "start",
        "label": "Start default services",
        "type": "boolean",
        "option": [
          "--start",
          "-s"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "end",
        "label": "Shut down all services",
        "type": "boolean",
        "option": [
          "--end",
          "-e"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "restart",
        "label": "Restart default services",
        "type": "boolean",
        "option": [
          "--restart",
          "-r"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "info",
        "label": "List running services",
        "type": "boolean",
        "option": [
          "--info",
          "-I"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "monitor",
        "label": "Monitor ARM activity",
        "type": "boolean",
        "option": [
          "--monitor",
          "-m"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "init",
        "label": "Start one service",
        "type": "string",
        "option": [
          "--init",
          "-i"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "kill",
        "label": "Stop one service",
        "type": "string",
        "option": [
          "--kill",
          "-k"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config",
          "-c"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "loglevel",
        "label": "Log level",
        "type": "enum",
        "option": [
          "--loglevel",
          "-L"
        ],
        "choices": [
          {
            "value": "DEBUG",
            "label": "Debug"
          },
          {
            "value": "INFO",
            "label": "Info"
          },
          {
            "value": "WARNING",
            "label": "Warning"
          },
          {
            "value": "ERROR",
            "label": "Error"
          }
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "logfile",
        "label": "Log file",
        "type": "path",
        "option": [
          "--logfile",
          "-l"
        ],
        "path": {
          "kind": "file",
          "role": "output",
          "must_exist": false
        },
        "effect": "overwrite",
        "sources": [
          "man"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "--quiet",
          "-q"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "start",
        "label": "Start the peer",
        "set": {
          "start": [
            true
          ]
        },
        "lock": [
          "start"
        ],
        "fields": [
          "start",
          "config",
          "quiet"
        ],
        "required": []
      },
      {
        "id": "stop",
        "label": "Stop the peer",
        "set": {
          "end": [
            true
          ]
        },
        "lock": [
          "end"
        ],
        "fields": [
          "end",
          "config",
          "quiet"
        ],
        "required": []
      },
      {
        "id": "status",
        "label": "List running services",
        "set": {
          "info": [
            true
          ]
        },
        "lock": [
          "info"
        ],
        "fields": [
          "info",
          "config"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "start",
          "end",
          "restart",
          "info",
          "init",
          "kill",
          "config"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "monitor",
          "loglevel",
          "logfile",
          "quiet"
        ]
      }
    ]
  }
}
