Skip to content

Commit

Permalink
refactor: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs committed Jun 14, 2022
1 parent ee33021 commit 37c6201
Show file tree
Hide file tree
Showing 9 changed files with 15,886 additions and 15,499 deletions.
44 changes: 42 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Download and extract binaries from compressed packages.
$ npm install -g bindl
$ bindl COMMAND
running command...
$ bindl (-v|--version|version)
bindl/2.0.0 linux-x64 node-v14.17.4
$ bindl (--version|-v)
bindl/2.0.0 linux-x64 node-v16.15.1
$ bindl --help [COMMAND]
USAGE
$ bindl COMMAND
Expand Down Expand Up @@ -51,5 +51,45 @@ DESCRIPTION
You can find an example of config file [here](./test/res/bindl.config.js).

<!-- commands -->
* [`bindl .`](#bindl-)
* [`bindl version`](#bindl-version)

## `bindl .`

Downloads and extracts binaries from compressed packages using a config file

```
USAGE
$ bindl . [--version] [--help] [-c <value>]
FLAGS
-c, --config=<value> Path to the config file
--help Show CLI help.
--version Show CLI version.
DESCRIPTION
Downloads and extracts binaries from compressed packages using a config file
The config will be read from any valid config file in the current directory. The configuration file can be defined
using all the extensions and names accepted by cosmiconfig, such as bindl.config.js
```

_See code: [src/index.ts](https://github.com/felipecrs/bindl/blob/v2.0.0/src/index.ts)_

## `bindl version`

```
USAGE
$ bindl version [--verbose]
FLAGS
--verbose Show additional information about the CLI.
FLAG DESCRIPTIONS
--verbose Show additional information about the CLI.
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
```

_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.1.0/src/commands/version.ts)_
<!-- commandsstop -->
17 changes: 17 additions & 0 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env node

const oclif = require('@oclif/core')

const path = require('path')
const project = path.join(__dirname, '..', 'tsconfig.json')

// In dev mode -> use ts-node and dev plugins
process.env.NODE_ENV = 'development'

require('ts-node').register({project})

// In dev mode, always show stack traces
oclif.settings.debug = true;

// Start the CLI
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
3 changes: 3 additions & 0 deletions bin/dev.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\dev" %*
12 changes: 2 additions & 10 deletions bin/run
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
#!/usr/bin/env node

const fs = require('fs')
const path = require('path')
const project = path.join(__dirname, '../tsconfig.json')
const dev = fs.existsSync(project)
const oclif = require('@oclif/core')

if (dev) {
require('ts-node').register({project})
}

require(`../${dev ? 'src' : 'lib'}`).run()
.catch(require('@oclif/errors/handle'))
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))

0 comments on commit 37c6201

Please sign in to comment.