{
  "id": "flutter",
  "name": "Flutter",
  "homepage": "https://docs.flutter.dev/reference/flutter-cli",
  "description": "Flutter makes it easy and fast to build beautiful apps for mobile and beyond.",
  "icon": "SimpleIcons:flutter",
  "executables": [
    "flutter"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/flutter/settings",
      "~/.flutter_settings",
      "%APPDATA%/.flutter_settings"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "machine_lines": [
      {
        "file": [
          "[configHome]/flutter/settings",
          "~/.flutter_settings",
          "%APPDATA%/.flutter_settings"
        ],
        "format": "json",
        "match": {
          "key_path": [
            "android-sdk"
          ]
        },
        "scope": "backup"
      },
      {
        "file": [
          "[configHome]/flutter/settings",
          "~/.flutter_settings",
          "%APPDATA%/.flutter_settings"
        ],
        "format": "json",
        "match": {
          "key_path": [
            "android-studio-dir",
            "jdk-dir"
          ]
        },
        "scope": "platform"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Flutter",
    "description": "Run, build, create and test Flutter apps. Analyze, pub, emulators and the many tracing and VM-service flags are left out.",
    "quality": "ai-draft",
    "base": "fig:flutter",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/flutter.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "run"
        ],
        "label": "Run an app",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/flutter.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "device_id",
            "label": "Device",
            "type": "string",
            "option": [
              "--device-id",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "target",
            "label": "Entry-point file",
            "type": "path",
            "option": [
              "--target",
              "-t"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "debug",
            "label": "Debug mode",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "profile",
            "label": "Profile mode",
            "type": "boolean",
            "option": [
              "--profile"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "release",
            "label": "Release mode",
            "type": "boolean",
            "option": [
              "--release"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "flavor",
            "label": "Flavor",
            "type": "string",
            "option": [
              "--flavor"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dart_define",
            "label": "Dart define (KEY=VALUE)",
            "type": "string",
            "option": [
              "--dart-define"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_pub",
            "label": "Skip pub get",
            "type": "boolean",
            "option": [
              "--no-pub"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose",
              "-v"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run-device",
            "label": "Run on a device",
            "fields": [
              "device_id",
              "target",
              "flavor"
            ],
            "required": []
          },
          {
            "id": "run-release",
            "label": "Run release build",
            "set": {
              "release": [
                true
              ]
            },
            "fields": [
              "device_id",
              "target",
              "release"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "device_id",
              "target",
              "debug",
              "profile"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "release",
              "flavor",
              "dart_define",
              "no_pub",
              "verbose"
            ]
          }
        ]
      },
      {
        "path": [
          "build"
        ],
        "label": "Build an app",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/flutter.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "executable_type",
            "label": "Build type",
            "type": "string",
            "position": 0,
            "suggestions": [
              {
                "value": "apk",
                "label": "apk"
              },
              {
                "value": "appbundle",
                "label": "appbundle"
              },
              {
                "value": "ios",
                "label": "ios"
              },
              {
                "value": "ipa",
                "label": "ipa"
              },
              {
                "value": "web",
                "label": "web"
              },
              {
                "value": "aar",
                "label": "aar"
              },
              {
                "value": "bundle",
                "label": "bundle"
              },
              {
                "value": "ios-framework",
                "label": "ios-framework"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "target",
            "label": "Entry-point file",
            "type": "path",
            "option": [
              "--target",
              "-t"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose",
              "-v"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "build",
            "label": "Build",
            "fields": [
              "executable_type",
              "target"
            ],
            "required": [
              "executable_type"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "executable_type",
              "target",
              "verbose"
            ]
          }
        ]
      },
      {
        "path": [
          "create"
        ],
        "label": "Create a project",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/flutter.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project_name",
            "label": "Package name",
            "type": "string",
            "option": [
              "--project-name"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "org",
            "label": "Organization (reverse domain)",
            "type": "string",
            "option": [
              "--org"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "template",
            "label": "Template",
            "type": "string",
            "option": [
              "--template",
              "-t"
            ],
            "suggestions": [
              {
                "value": "app",
                "label": "app"
              },
              {
                "value": "module",
                "label": "module"
              },
              {
                "value": "package",
                "label": "package"
              },
              {
                "value": "plugin",
                "label": "plugin"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "platforms",
            "label": "Platforms",
            "type": "string",
            "option": [
              "--platforms"
            ],
            "suggestions": [
              {
                "value": "android",
                "label": "android"
              },
              {
                "value": "ios",
                "label": "ios"
              },
              {
                "value": "web",
                "label": "web"
              },
              {
                "value": "macos",
                "label": "macos"
              },
              {
                "value": "linux",
                "label": "linux"
              },
              {
                "value": "windows",
                "label": "windows"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "description",
            "label": "Description",
            "type": "string",
            "option": [
              "--description"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ios_language",
            "label": "iOS language",
            "type": "string",
            "option": [
              "--ios-language",
              "-i"
            ],
            "suggestions": [
              {
                "value": "swift",
                "label": "swift"
              },
              {
                "value": "objc",
                "label": "objc"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "android_language",
            "label": "Android language",
            "type": "string",
            "option": [
              "--android-language",
              "-a"
            ],
            "suggestions": [
              {
                "value": "kotlin",
                "label": "kotlin"
              },
              {
                "value": "java",
                "label": "java"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "overwrite",
            "label": "Overwrite existing files",
            "type": "boolean",
            "option": [
              "--overwrite"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_pub",
            "label": "Skip pub get",
            "type": "boolean",
            "option": [
              "--no-pub"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "create-app",
            "label": "New app",
            "set": {
              "template": [
                "app"
              ]
            },
            "fields": [
              "project_name",
              "org",
              "platforms"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project_name",
              "org",
              "template"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "platforms",
              "description",
              "ios_language",
              "android_language",
              "overwrite",
              "no_pub"
            ]
          }
        ]
      },
      {
        "path": [
          "test"
        ],
        "label": "Run tests",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/flutter.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Name regexp",
            "type": "string",
            "option": [
              "--name"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "plain_name",
            "label": "Name substring",
            "type": "string",
            "option": [
              "--plain-name"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "coverage",
            "label": "Collect coverage",
            "type": "boolean",
            "option": [
              "--coverage"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "update_goldens",
            "label": "Update goldens",
            "type": "boolean",
            "option": [
              "--update-goldens"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tags",
            "label": "Only tags",
            "type": "string",
            "option": [
              "--tags",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "exclude_tags",
            "label": "Exclude tags",
            "type": "string",
            "option": [
              "--exclude-tags",
              "-x"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "reporter",
            "label": "Reporter",
            "type": "string",
            "option": [
              "--reporter",
              "-r"
            ],
            "suggestions": [
              {
                "value": "compact",
                "label": "compact"
              },
              {
                "value": "expanded",
                "label": "expanded"
              },
              {
                "value": "json",
                "label": "json"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_pub",
            "label": "Skip pub get",
            "type": "boolean",
            "option": [
              "--no-pub"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "coverage",
            "label": "Test with coverage",
            "set": {
              "coverage": [
                true
              ]
            },
            "fields": [
              "name",
              "coverage"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "plain_name",
              "coverage"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "update_goldens",
              "tags",
              "exclude_tags",
              "reporter",
              "no_pub"
            ]
          }
        ]
      }
    ]
  }
}
