{
  "id": "truffle",
  "name": "Truffle",
  "homepage": "https://github.com/trufflesuite/truffle",
  "description": "Truffle is a development environment, testing framework, and asset pipeline for Ethereum.",
  "icon": "https://trufflesuite.com/img/truffle-logomark.svg",
  "executables": [
    "truffle"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/truffle-nodejs/config.json",
      "~/Library/Preferences/truffle-nodejs/config.json",
      "%APPDATA%/truffle-nodejs/Config/config.json"
    ],
    "exclude": [],
    "secret": [],
    "machine_lines": [
      {
        "file": [
          "~/.config/truffle-nodejs/config.json",
          "~/Library/Preferences/truffle-nodejs/config.json",
          "%APPDATA%/truffle-nodejs/Config/config.json"
        ],
        "match": {
          "key_path": [
            "uniqueId"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Truffle project",
    "description": "Compile, migrate and test Solidity contracts. Console, debug and package commands are left out.",
    "quality": "ai-draft",
    "base": "fig:truffle",
    "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/truffle.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "compile"
        ],
        "label": "Compile contracts",
        "description": "Compile contract sources.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/truffle.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "all",
            "label": "Compile all contracts",
            "type": "boolean",
            "option": [
              "--all"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Suppress output",
            "type": "boolean",
            "option": [
              "--quiet"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "compile",
            "label": "Compile changed",
            "fields": [
              "all",
              "quiet"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "all",
              "quiet"
            ]
          }
        ]
      },
      {
        "path": [
          "migrate"
        ],
        "label": "Run migrations",
        "description": "Deploy contracts to a network. Use a dry run first.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/truffle.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "network",
            "label": "Network",
            "type": "string",
            "option": [
              "--network"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "reset",
            "label": "Rerun from the beginning",
            "type": "boolean",
            "option": [
              "--reset"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "compile_all",
            "label": "Compile all contracts",
            "type": "boolean",
            "option": [
              "--compile-all"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run on a fork",
            "type": "boolean",
            "option": [
              "--dry-run"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "to",
            "label": "Run up to migration",
            "type": "integer",
            "option": [
              "--to"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "migrate",
            "label": "Migrate to network",
            "fields": [
              "network",
              "reset",
              "compile_all"
            ],
            "required": [
              "network"
            ]
          },
          {
            "id": "dry",
            "label": "Dry run",
            "fields": [
              "network",
              "dry_run"
            ],
            "required": [
              "network"
            ],
            "set": {
              "dry_run": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "network",
              "reset",
              "compile_all",
              "dry_run",
              "to"
            ]
          }
        ]
      },
      {
        "path": [
          "test"
        ],
        "label": "Run tests",
        "description": "Run JavaScript and Solidity tests.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/truffle.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "test_file",
            "label": "Test file",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "network",
            "label": "Network",
            "type": "string",
            "option": [
              "--network"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "compile_all",
            "label": "Compile all contracts",
            "type": "boolean",
            "option": [
              "--compile-all"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "show_events",
            "label": "Log contract events",
            "type": "boolean",
            "option": [
              "--show-events"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "bail",
            "label": "Stop at first failure",
            "type": "boolean",
            "option": [
              "--bail",
              "-b"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "stacktrace",
            "label": "Mixed stack traces",
            "type": "boolean",
            "option": [
              "--stacktrace",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "test",
            "label": "Run all tests",
            "fields": [
              "compile_all",
              "bail"
            ],
            "required": []
          },
          {
            "id": "one",
            "label": "Run one file",
            "fields": [
              "test_file",
              "bail"
            ],
            "required": [
              "test_file"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "test_file",
              "network",
              "compile_all",
              "bail",
              "show_events",
              "stacktrace"
            ]
          }
        ]
      }
    ]
  }
}
