UNPKG

@fairdatasociety/fdp-cli

Version:
19 lines (13 loc) 593 B
import { LeafCommand } from 'furious-commander' import { Message } from '../../utils/message' import { DirectoryCommand } from './directory-command' export class Delete extends DirectoryCommand implements LeafCommand { public readonly name = 'delete' public readonly description = 'Delete a directory' public postageBatchRequired = true public async run(): Promise<void> { await super.init() await this.fdpStorage.directory.delete(await this.getCurrentPodName(this.account, this.pod), this.path) this.console.log(Message.directoryDeletedSuccessfully(this.path)) } }