@ethersphere/swarm-cli
Version:
CLI tool for Bee
18 lines (17 loc) • 661 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PinningCommand = void 0;
const process_1 = require("process");
const utils_1 = require("../../utils");
const root_command_1 = require("../root-command");
class PinningCommand extends root_command_1.RootCommand {
init() {
super.init();
if ((0, utils_1.isGateway)(this.beeApiUrl)) {
this.console.error('Pinning is currently not supported on the gateway node.');
this.console.error('You can use the pinning API with your local Bee node.');
(0, process_1.exit)(1);
}
}
}
exports.PinningCommand = PinningCommand;