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 72cf74e
Show file tree
Hide file tree
Showing 9 changed files with 15,882 additions and 15,510 deletions.
51 changes: 38 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,59 @@ 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
...
```
<!-- usagestop -->

```sh-session
$ bindl --help
You can find an example of config file [here](./test/res/bindl.config.js).

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

## `bindl .`

Downloads and extracts binaries from compressed packages using a config file

```
USAGE
$ bindl
$ bindl . [--version] [--help] [-c <value>]
OPTIONS
-c, --config=config Path to the config file
-h, --help show CLI help
--version show CLI version
FLAGS
-c, --config=<value> Path to the config file
--help Show CLI help.
--version Show CLI version.
DESCRIPTION
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
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
```

You can find an example of config file [here](./test/res/bindl.config.js).
_See code: [src/index.ts](https://github.com/felipecrs/bindl/blob/v2.0.0/src/index.ts)_

<!-- commands -->
## `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 72cf74e

Please sign in to comment.