id = "scarb" name = "Scarb" description = "Build toolchain and package manager for Cairo and Starknet." homepage = "https://docs.swmansion.com/scarb/" executables = ["scarb"] [commands] format = 1 label = "Scarb" description = "Create, build, test and add dependencies. fmt, run, cache and metadata are not covered." quality = "ai-draft" base = "fig:scarb" parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = true } [[commands.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts" license = "MIT" [[commands.subcommand]] path = ["new"] label = "Create a package" [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts" license = "MIT" [[commands.subcommand.field]] id = "path" label = "Path" type = "path" position = 0 path = { kind = "directory", role = "output" } sources = ["src"] [[commands.subcommand.field]] id = "name" label = "Package name" type = "string" option = ["--name"] sources = ["src"] [[commands.subcommand.field]] id = "no_vcs" label = "No Git repository" type = "boolean" option = ["--no-vcs"] sources = ["src"] [[commands.subcommand.task]] id = "new" label = "New package" fields = ["path", "name", "no_vcs"] required = ["path"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["path", "name", "no_vcs"] [[commands.subcommand]] path = ["build"] label = "Build" [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts" license = "MIT" [[commands.subcommand.field]] id = "package" label = "Package" type = "string" option = ["--package", "-p"] sources = ["src"] [[commands.subcommand.field]] id = "verbose" label = "Verbose" type = "count" option = ["--verbose", "-v"] sources = ["src"] [[commands.subcommand.field]] id = "quiet" label = "Quiet" type = "count" option = ["--quiet", "-q"] sources = ["src"] [[commands.subcommand.field]] id = "workspace" label = "Whole workspace" type = "boolean" option = ["--workspace", "-w"] sources = ["src"] [[commands.subcommand.task]] id = "build" label = "Build" fields = ["package", "workspace"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["package", "workspace"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["verbose", "quiet"] [[commands.subcommand]] path = ["test"] label = "Run tests" [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts" license = "MIT" [[commands.subcommand.field]] id = "filter" label = "Test filter" type = "string" option = ["--filter", "-f"] sources = ["src"] [[commands.subcommand.field]] id = "ignored" label = "Only ignored tests" type = "boolean" option = ["--ignored"] sources = ["src"] [[commands.subcommand.field]] id = "include_ignored" label = "Include ignored tests" type = "boolean" option = ["--include-ignored"] sources = ["src"] [[commands.subcommand.field]] id = "workspace" label = "Whole workspace" type = "boolean" option = ["--workspace", "-w"] sources = ["src"] [[commands.subcommand.field]] id = "package" label = "Package" type = "string" option = ["--package", "-p"] sources = ["src"] [[commands.subcommand.field]] id = "verbose" label = "Verbose" type = "count" option = ["--verbose", "-v"] sources = ["src"] [[commands.subcommand.field]] id = "quiet" label = "Quiet" type = "count" option = ["--quiet", "-q"] sources = ["src"] [[commands.subcommand.task]] id = "test" label = "Run tests" fields = ["filter", "package", "workspace"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["filter", "workspace", "package"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["ignored", "include_ignored", "verbose", "quiet"] [[commands.subcommand]] path = ["add"] label = "Add a dependency" [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts" license = "MIT" [[commands.subcommand.field]] id = "dep" label = "Dependency" type = "string" position = 0 sources = ["src"] [[commands.subcommand.field]] id = "package" label = "Package" type = "string" option = ["--package", "-p"] sources = ["src"] [[commands.subcommand.field]] id = "path" label = "Local path" type = "path" option = ["--path"] path = { kind = "directory", role = "input" } sources = ["src"] [[commands.subcommand.field]] id = "git" label = "Git URI" type = "string" option = ["--git"] sources = ["src"] [[commands.subcommand.field]] id = "branch" label = "Git branch" type = "string" option = ["--branch"] sources = ["src"] [[commands.subcommand.field]] id = "tag" label = "Git tag" type = "string" option = ["--tag"] sources = ["src"] [[commands.subcommand.field]] id = "rev" label = "Git revision" type = "string" option = ["--rev"] sources = ["src"] [[commands.subcommand.field]] id = "dry_run" label = "Dry run" type = "boolean" option = ["--dry-run"] sources = ["src"] [[commands.subcommand.task]] id = "add" label = "Add" fields = ["dep", "package", "dry_run"] required = ["dep"] [[commands.subcommand.task]] id = "git" label = "Add from Git" fields = ["dep", "git", "branch", "tag"] required = ["dep", "git"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["dep", "package", "dry_run"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["git", "branch", "tag", "rev", "path"]