hunk.code_window:     case 'status':
         return statusCmd(opts)
       case 'prune':
         return storePrune(opts)
       default:
         throw new Error('Unknown command')
     }
   }
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:       help(['store'])
  
hunk.file_path: src/cmd/store.ts
hunk.type: replace
file: import isexe = require('isexe')
  import fs = require('mz/fs')
  import {Test} from 'tape'
  import semver = require('semver')
  import {Stats} from 'fs'
  import isWindows = require('is-windows')
  
  const IS_WINDOWS = isWindows()
  
  export default async function isExecutable (t: Test, filePath: string) {
    if (IS_WINDOWS) {
      t.ok(isexe(filePath), `${filePath} is executable`)
      return
    }
  
    const stat = await fs.stat(filePath)
    t.equal(stat.mode, parseInt('100755', 8), `${filePath} is executable`)
    t.ok(stat.isFile(), `${filePath} refers to a file`)
    return
  }
  