@ethersphere/swarm-cli
Version:
CLI tool for Bee
50 lines (49 loc) • 1.59 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Message = void 0;
function specifyIdentityName() {
return 'Enter a unique name for the new identity';
}
function identityNameConflict(name) {
return `An identity with the name '${name}' already exists`;
}
function identityNameConflictArgument(name) {
return `${identityNameConflict(name)}. Provide a unique name in the first argument`;
}
function identityNameConflictOption(name) {
return `${identityNameConflict(name)}. Provide a unique name with the --name option`;
}
function noIdentity() {
return "No identities found. Create one with the command 'identity create'";
}
function noSuchIdentity(name) {
return `No identity found with the name '${name}'`;
}
function optionNotDefined(name, option) {
return `No ${name} specified with the '--${option || name}' option`;
}
function existingV3Password() {
return 'Enter the current password of the V3 wallet';
}
function newV3Password() {
return 'Enter a new password for the V3 wallet';
}
function newV3PasswordConfirmation() {
return 'Enter the new password again for the V3 wallet';
}
function requireOptionConfirmation(option, message) {
return `${message}. Pass the --${option} option to allow it`;
}
exports.Message = {
specifyIdentityName,
identityNameConflict,
identityNameConflictArgument,
identityNameConflictOption,
noIdentity,
noSuchIdentity,
optionNotDefined,
existingV3Password,
newV3Password,
newV3PasswordConfirmation,
requireOptionConfirmation,
};