id = "chown" name = "chown" description = "Change the user and/or group ownership of files, directories, or symbolic links." executables = ["chown"] [commands] format = 1 label = "Change owner" description = "Set owner and/or group of files. Symlink-traversal flags -H, -L and -P are left out." quality = "ai-draft" base = "fig:chown" 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/chown.ts" license = "MIT" [[commands.field]] id = "owner" label = "Owner[:group]" description = "user, user:group or :group." type = "string" position = 0 min = 1 sources = ["fig"] [[commands.field]] id = "files" label = "Files" type = "path" position = 1 multiple = true min = 1 path = { kind = "any", role = "input", must_exist = true, transforms = ["dot_slash_if_dash"] } effect = "overwrite" sources = ["fig"] [[commands.field]] id = "recursive" label = "Recursive" type = "boolean" option = ["-R"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["-v"] sources = ["fig"] [[commands.field]] id = "numeric" label = "Numeric IDs" type = "boolean" option = ["-n"] sources = ["fig"] [[commands.field]] id = "quiet" label = "Suppress errors" type = "boolean" option = ["-f"] sources = ["fig"] [[commands.field]] id = "link_itself" label = "Change symlink itself" type = "boolean" option = ["-h"] sources = ["fig"] [[commands.task]] id = "chown" label = "Change owner" fields = ["owner", "files"] required = ["owner", "files"] [[commands.task]] id = "chown_recursive" label = "Change owner recursively" fields = ["owner", "files", "recursive", "verbose"] required = ["owner", "files"] set = { recursive = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["owner", "files", "recursive"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["verbose", "numeric", "quiet", "link_itself"]