Skip to content

Commit

Permalink
Update dependencies Jul 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Mors committed Jul 19, 2023
1 parent 17ab930 commit b9841bb
Show file tree
Hide file tree
Showing 5 changed files with 882 additions and 333 deletions.
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.4.1.cjs
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,36 +47,36 @@
],
"license": "Apache-2.0",
"devDependencies": {
"@types/async": "^3.2.18",
"@types/better-sqlite3": "^7.6.3",
"@types/chai": "^4.3.4",
"@types/inquirer": "^8.1.3",
"@types/async": "^3.2.20",
"@types/better-sqlite3": "^7.6.4",
"@types/chai": "^4.3.5",
"@types/inquirer": "^8.2.6",
"@types/mocha": "^10.0.1",
"@types/node": "^18.14.5",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@types/node": "^18.16.19",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"chai": "^4.3.7",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"husky": "^8.0.3",
"mocha": "^10.2.0",
"pkg": "^5.8.1",
"prettier": "^2.8.4",
"prettier": "^2.8.8",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
},
"dependencies": {
"@napi-rs/clipboard": "^1.1.1",
"@napi-rs/keyring": "^0.0.1",
"@node-rs/argon2": "^1.4.0",
"better-sqlite3": "^8.1.0",
"commander": "^10.0.0",
"got": "^11.8.5",
"inquirer": "^8.2.0",
"@napi-rs/keyring": "^1.1.3",
"@node-rs/argon2": "^1.5.0",
"better-sqlite3": "^8.4.0",
"commander": "^10.0.1",
"got": "^11.8.6",
"inquirer": "^8.2.5",
"inquirer-search-list": "^1.2.6",
"otplib": "^12.0.1",
"winston": "^3.8.2",
"winston": "^3.10.0",
"xml-js": "^1.6.11",
"zlib": "^1.0.5"
},
Expand Down
30 changes: 15 additions & 15 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,21 @@ program
db.close();
});

const devicesGroup = program.command('devices').alias('d').description('Operations on devices');

devicesGroup
.command('list')
.option('--json', 'Output in JSON format')
.description('Lists all registered devices that can access to your account')
.action(listAllDevices);
devicesGroup
.command('remove')
.option('--all', 'remove all devices (dangerous)')
.option('--other', 'remove all other devices')
.argument('[device ids...]', 'ids of the devices to remove')
.description('Unregisters a list of devices. Unregistering the CLI will implies doing a "dcli reset"')
.action(removeAllDevices);

const teamGroup = program.command('team').alias('t').description('Team related commands');

if (!teamDeviceCredentials) {
Expand Down Expand Up @@ -276,21 +291,6 @@ program
}
});

const devicesGroup = program.command('devices').alias('d').description('Operations on devices');

devicesGroup
.command('list')
.option('--json', 'Output in JSON format')
.description('Lists all registered devices that can access to your account')
.action(listAllDevices);
devicesGroup
.command('remove')
.option('--all', 'remove all devices (dangerous)')
.option('--other', 'remove all other devices')
.argument('[device ids...]', 'ids of the devices to remove')
.description('Unregisters a list of devices. Unregistering the CLI will implies doing a "dcli reset"')
.action(removeAllDevices);

program.parseAsync().catch((error: Error) => {
console.error(`ERROR: ${error.message}`);
process.exit(1);
Expand Down
Loading

0 comments on commit b9841bb

Please sign in to comment.