id = "hostname" name = "hostname" description = "Print the name of the current host system, or set it." executables = ["hostname"] [commands] format = 1 label = "Show host name" description = "Print the host name, optionally trimmed or with domain information. Setting the name needs privileges and is left out." quality = "ai-draft" base = "fig:hostname" 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/hostname.ts" license = "MIT" [[commands.field]] id = "full" label = "Include domain" type = "boolean" option = ["-f"] sources = ["fig"] [[commands.field]] id = "short" label = "Trim domain" type = "boolean" option = ["-s"] sources = ["fig"] [[commands.field]] id = "domain_only" label = "Domain only" type = "boolean" option = ["-d"] sources = ["fig"] [[commands.task]] id = "show" label = "Show host name" fields = ["full", "short", "domain_only"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["full", "short", "domain_only"]