UNPKG

@ethersphere/swarm-cli

Version:
17 lines (16 loc) 615 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PinningCommand = void 0; const process_1 = require("process"); const root_command_1 = require("../root-command"); class PinningCommand extends root_command_1.RootCommand { async init() { super.init(); if (await this.bee.isGateway()) { 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;