{
  "id": "lsd",
  "name": "lsd",
  "homepage": "https://github.com/lsd-rs/lsd",
  "description": "A rewrite of GNU ls with lots of added features like colors, icons, tree-view, more formatting options etc.",
  "icon": "https://github.com/lsd-rs.png?size=200",
  "executables": [
    "lsd"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/lsd/config.yaml",
      "[configHome]/lsd/colors.yaml",
      "[configHome]/lsd/icons.yaml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "List directory",
    "description": "List files with lsd: hidden files, long table, tree, sorting and colour. Icon, date format and block layout options are left out.",
    "quality": "ai-draft",
    "base": "fig:lsd",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/lsd.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "paths",
        "label": "Folders or files",
        "type": "path",
        "path": {
          "kind": "any",
          "role": "input"
        },
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "all",
        "label": "Show hidden files",
        "type": "boolean",
        "option": [
          "--all",
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "almost_all",
        "label": "Hidden files except . and ..",
        "type": "boolean",
        "option": [
          "--almost-all",
          "-A"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "long",
        "label": "Long table",
        "type": "boolean",
        "option": [
          "--long",
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tree",
        "label": "Tree view",
        "type": "boolean",
        "option": [
          "--tree"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "depth",
        "label": "Max depth",
        "type": "integer",
        "option": [
          "--depth"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "recursive",
        "label": "Recurse into directories",
        "type": "boolean",
        "option": [
          "--recursive",
          "-R"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "directory_only",
        "label": "Directories themselves",
        "type": "boolean",
        "option": [
          "--directory-only",
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "sort",
        "label": "Sort by",
        "type": "enum",
        "option": [
          "--sort"
        ],
        "choices": [
          {
            "value": "size",
            "label": "Size"
          },
          {
            "value": "time",
            "label": "Time"
          },
          {
            "value": "version",
            "label": "Version"
          },
          {
            "value": "extension",
            "label": "Extension"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "reverse",
        "label": "Reverse sort",
        "type": "boolean",
        "option": [
          "--reverse",
          "-r"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "group_dirs",
        "label": "Group directories",
        "type": "enum",
        "option": [
          "--group-dirs"
        ],
        "choices": [
          {
            "value": "none",
            "label": "None"
          },
          {
            "value": "first",
            "label": "First"
          },
          {
            "value": "last",
            "label": "Last"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "color",
        "label": "Colour",
        "type": "enum",
        "option": [
          "--color"
        ],
        "choices": [
          {
            "value": "always",
            "label": "Always"
          },
          {
            "value": "auto",
            "label": "Auto"
          },
          {
            "value": "never",
            "label": "Never"
          }
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "long_list",
        "label": "Long listing",
        "fields": [
          "paths",
          "long",
          "all"
        ],
        "set": {
          "long": [
            true
          ]
        }
      },
      {
        "id": "tree_view",
        "label": "Tree view",
        "fields": [
          "paths",
          "tree",
          "depth",
          "all"
        ],
        "set": {
          "tree": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "paths",
          "all",
          "long",
          "tree",
          "depth"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "almost_all",
          "recursive",
          "directory_only",
          "sort",
          "reverse",
          "group_dirs",
          "color"
        ]
      }
    ]
  }
}
