id = "nginx" name = "nginx" description = "HTTP and reverse proxy server, mail proxy server and generic TCP/UDP proxy." executables = ["nginx"] [commands] format = 1 label = "Run or control nginx" description = "Test a configuration, signal the master process, or print the version. Global directives and the prefix path are left out." quality = "ai-draft" base = "fig:nginx" parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/nginx.ts" license = "MIT" [[commands.field]] id = "config" label = "Configuration file" type = "path" option = ["-c"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.field]] id = "test" label = "Test configuration and exit" type = "boolean" option = ["-t"] sources = ["fig"] [[commands.field]] id = "test_dump" label = "Test and dump configuration" type = "boolean" option = ["-T"] sources = ["fig"] [[commands.field]] id = "quiet" label = "Suppress non-error messages while testing" type = "boolean" option = ["-q"] sources = ["fig"] [[commands.field]] id = "signal" label = "Signal master process" type = "enum" option = ["-s"] choices = [{ value = "stop", label = "stop" }, { value = "quit", label = "quit" }, { value = "reopen", label = "reopen" }, { value = "reload", label = "reload" }] sources = ["fig"] [[commands.field]] id = "version" label = "Print version" type = "boolean" option = ["-v"] sources = ["fig"] [[commands.field]] id = "version_full" label = "Print version and build configuration" type = "boolean" option = ["-V"] sources = ["fig"] [[commands.task]] id = "test" label = "Test configuration" set = { test = [true] } fields = ["config", "test", "quiet"] required = [] [[commands.task]] id = "reload" label = "Reload" set = { signal = ["reload"] } fields = ["signal"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["config", "test", "quiet", "signal", "version"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["test_dump", "version_full"]