mirror of https://github.com/hyper-tuner/ini.git
Update README and usage
This commit is contained in:
parent
fc70abcac4
commit
4aefc9883e
12
README.md
12
README.md
|
@ -26,8 +26,16 @@ npm i --save @hyper-tuner/ini
|
|||
|
||||
## CLI capabilities
|
||||
|
||||
You can also run this package as a CLI tool, example:
|
||||
You can also run this package as a CLI tool.
|
||||
|
||||
First you need to provide PAT as a ENV:
|
||||
|
||||
```bash
|
||||
npx @hyper-tuner/ini validate test/data/ini/202207.ini
|
||||
export NPM_GITHUB_TOKEN=my_github_personal_access_token
|
||||
```
|
||||
|
||||
No you can run the tool:
|
||||
|
||||
```bash
|
||||
npx hyper-tuner/ini validate test/data/ini/202103.ini
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ const loadFile = (filename: string) => {
|
|||
|
||||
const showUsage = () => {
|
||||
console.info('\nℹ Usage:');
|
||||
console.info('hypertuner-ini validate some_ini_file.ini');
|
||||
console.info('npx hyper-tuner/ini validate some_ini_file.ini');
|
||||
process.exit(1);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue