class Remove extends Task {
  constructor(input) {
    super('remove');

    this.input = input;
  }
  get fn() {
    return () => {
      if (this.input.trim()) {
        del(File.absPaths(this.input), {force: true}).then(paths => {
          logger.error('[Remove] Deleted files and folders', paths);
        });
      } else {
        logger.warning('[Remove]', 'Invalid path');
      }
    };
  }
}

export default Remove;

class Remove extends Task {
  constructor(input) {
    super('remove');

    this.input = input;
  }
  get fn() {
    return () => {
      if (this.input.length) { // TODO: string and array
        del(File.absPaths(this.input), {force: true}).then(paths => {
          logger.error('[Remove] Deleted files and folders', paths);
        });
      } else {
        logger.warning('[Remove]', 'Invalid path');
      }
    };
  }
}

export default Remove;

fix input verification in remove task