@ethersphere/swarm-cli
Version:
CLI tool for Bee
17 lines (13 loc) • 443 B
text/typescript
import { exit } from 'process'
import { isGateway } from '../../utils'
import { RootCommand } from '../root-command'
export class PinningCommand extends RootCommand {
protected init(): void {
super.init()
if (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.')
exit(1)
}
}
}