async run()

in src/commands/util/id-file.ts [16:27]


  async run() {
    const { args } = await this.parse(UtilIdFile)

    if (!fs.existsSync(args.file)) {
      this.error(`File ${args.file} does not exist`, { exit: 1 })
    }

    const hash = crypto.createHash('sha1')
    const content = fs.readFileSync(args.file)
    hash.update(content)
    this.log(hash.digest('hex'))
  }