id = "mv" name = "mv" description = "Move or rename files and directories." executables = ["mv"] [commands] format = 1 label = "Move or rename" description = "Move one or more sources into a target, or rename a single path. Only the common safety and verbosity flags are offered." quality = "ai-draft" base = "fig:mv" 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/mv.ts" license = "MIT" [[commands.field]] id = "sources" label = "Sources" type = "path" position = 0 multiple = true min = 1 path = { kind = "any", role = "input", must_exist = true } sources = ["fig"] [[commands.field]] id = "target" label = "Target" type = "path" position = 1 min = 1 path = { kind = "any", role = "output" } sources = ["fig"] [[commands.field]] id = "force" label = "Do not prompt before overwriting" type = "boolean" option = ["-f"] effect = "overwrite" sources = ["fig"] [[commands.field]] id = "interactive" label = "Prompt before overwriting" type = "boolean" option = ["-i"] sources = ["fig"] [[commands.field]] id = "no_clobber" label = "Never overwrite existing files" type = "boolean" option = ["-n"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["-v"] sources = ["fig"] [[commands.task]] id = "safe-move" label = "Move without overwriting" set = { no_clobber = [true], verbose = [true] } fields = ["sources", "target", "no_clobber", "verbose"] required = ["sources", "target"] [[commands.task]] id = "ask-move" label = "Move, asking before overwrite" set = { interactive = [true] } fields = ["sources", "target", "interactive", "verbose"] required = ["sources", "target"] [[commands.group]] id = "basic" label = "Basic" fields = ["sources", "target", "interactive", "no_clobber", "verbose"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["force"]