id = "mount" name = "mount" description = "Mount a filesystem or change the propagation of a subtree." platforms = ["linux"] executables = ["mount"] [commands] format = 1 label = "Mount a filesystem" description = "Mount a device or bind a subtree at a mountpoint. Propagation flags, fstab overrides and helper options are left out." quality = "ai-draft" base = "fig:mount" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/mount.ts" license = "MIT" [[commands.field]] id = "device" label = "Device or source" type = "path" position = 0 path = { kind = "any", role = "input" } sources = ["fig"] [[commands.field]] id = "mountpoint" label = "Mountpoint" type = "path" position = 1 path = { kind = "directory", role = "output" } sources = ["fig"] [[commands.field]] id = "types" label = "Filesystem type" type = "string" option = ["-t", "--types"] suggestions = [{ value = "ext4", label = "ext4" }, { value = "vfat", label = "vfat" }, { value = "ntfs", label = "ntfs" }, { value = "nfs", label = "nfs" }, { value = "tmpfs", label = "tmpfs" }] sources = ["fig"] [[commands.field]] id = "options" label = "Mount options" description = "Comma-separated list, for example noatime,uid=1000." type = "string" option = ["-o", "--options"] sources = ["fig"] [[commands.field]] id = "read_only" label = "Read-only" type = "boolean" option = ["-r", "--read-only"] sources = ["fig"] [[commands.field]] id = "bind" label = "Bind mount" description = "Mount a subtree somewhere else." type = "boolean" option = ["-B", "--bind"] sources = ["fig"] [[commands.field]] id = "mkdir" label = "Create mountpoint" type = "boolean" option = ["-m", "--mkdir"] sources = ["fig"] [[commands.field]] id = "fake" label = "Dry run" description = "Skip the mount(2) syscall." type = "boolean" option = ["-f", "--fake"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["-v", "--verbose"] sources = ["fig"] [[commands.task]] id = "mount-device" label = "Mount a device" fields = ["device", "mountpoint", "types", "options", "read_only", "mkdir"] required = ["device", "mountpoint"] [[commands.task]] id = "bind" label = "Bind a directory" set = { bind = [true] } lock = ["bind"] fields = ["device", "mountpoint", "bind", "read_only"] required = ["device", "mountpoint"] [[commands.group]] id = "basic" label = "Basic" fields = ["device", "mountpoint", "types", "options", "read_only"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["bind", "mkdir", "fake", "verbose"]