UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

55 lines (47 loc) 1.58 kB
import { HardhatError } from "../internal/core/errors"; import { scope } from "../internal/core/config/config-env"; import { ERRORS } from "../internal/core/errors-list"; const varsScope = scope("vars", "Manage your configuration variables"); varsScope .task("set", "Set the value of a configuration variable") .addPositionalParam("var", "The name of the variable") .addOptionalPositionalParam( "value", "The value to store. Omit to be prompted for it." ) .setAction(async () => { throw new HardhatError(ERRORS.VARS.ONLY_MANAGED_IN_CLI); }); varsScope .task("get", "Get the value of a configuration variable") .addPositionalParam("var", "The name of the variable") .setAction(async () => { throw new HardhatError(ERRORS.VARS.ONLY_MANAGED_IN_CLI); }); varsScope .task("list", "List all the configuration variables") .setAction(async () => { throw new HardhatError(ERRORS.VARS.ONLY_MANAGED_IN_CLI); }); varsScope .task("delete", "Delete a configuration variable") .addPositionalParam("var", "The name of the variable") .setAction(async () => { throw new HardhatError(ERRORS.VARS.ONLY_MANAGED_IN_CLI); }); varsScope .task( "path", "Show the path of the file where all the configuration variables are stored" ) .setAction(async () => { throw new HardhatError(ERRORS.VARS.ONLY_MANAGED_IN_CLI); }); varsScope .task( "setup", "Show how to setup the configuration variables used by this project" ) .setAction(async () => { throw new HardhatError(ERRORS.VARS.ONLY_MANAGED_IN_CLI); });