id = "sysctl" name = "sysctl" description = "Get or set kernel state." executables = ["sysctl"] [commands] format = 1 label = "Read kernel state" description = "Read kernel variables or list all of them. Setting values and -e/-b/-x output modes are not in this form." quality = "ai-draft" base = "fig:sysctl" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sysctl.ts" license = "MIT" [[commands.field]] id = "all" label = "List all variables" type = "boolean" option = ["-a"] sources = ["fig"] [[commands.field]] id = "names_only" label = "Names only" type = "boolean" option = ["-N"] sources = ["fig"] [[commands.field]] id = "values_only" label = "Values only" type = "boolean" option = ["-n"] sources = ["fig"] [[commands.field]] id = "describe" label = "Print description" type = "boolean" option = ["-d"] sources = ["fig"] [[commands.field]] id = "human" label = "Human-readable" type = "boolean" option = ["-h"] sources = ["fig"] [[commands.field]] id = "ignore_unknown" label = "Ignore unknown OIDs" type = "boolean" option = ["-i"] sources = ["fig"] [[commands.field]] id = "quiet" label = "Suppress warnings" type = "boolean" option = ["-q"] sources = ["fig"] [[commands.field]] id = "variables" label = "Variable names" description = "For example hw.ncpu or kern.osversion." type = "string" position = 0 multiple = true sources = ["fig"] [[commands.task]] id = "read" label = "Read variables" fields = ["variables", "values_only", "describe", "human"] required = ["variables"] [[commands.task]] id = "list" label = "List all" set = { all = [true] } lock = ["all"] fields = ["all", "names_only", "values_only", "describe"] [[commands.group]] id = "basic" label = "Basic" fields = ["variables", "all", "names_only", "values_only"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["describe", "human", "ignore_unknown", "quiet"]