@hostlink/hostlink-cli 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +258 -235
  2. package/dist/bundle.js +32839 -29
  3. package/index.js +36 -34
  4. package/package.json +39 -38
package/index.js CHANGED
@@ -1,34 +1,36 @@
1
- #!/usr/bin/env node
2
-
3
- const { Command } = require('commander');
4
- const Conf = require('conf');
5
- const clients = require('./src/clients');
6
- const domains = require('./src/domains');
7
- const quotations = require('./src/quotations');
8
- const quotationItems = require('./src/quotation-items');
9
- const me = require('./src/me');
10
-
11
- const config = new Conf({ projectName: 'hostlink-cli' });
12
-
13
- const program = new Command();
14
-
15
- program
16
- .name('hostlink')
17
- .description('HostLink CLI')
18
- .version('1.0.0');
19
-
20
- program
21
- .command('set-token <token>')
22
- .description('Save your access token')
23
- .action((token) => {
24
- config.set('token', token);
25
- console.log('Token saved.');
26
- });
27
-
28
- me.register(program);
29
- clients.register(program);
30
- domains.register(program);
31
- quotations.register(program);
32
- quotationItems.register(program);
33
-
34
- program.parse(process.argv);
1
+ #!/usr/bin/env node
2
+
3
+ const { Command } = require('commander');
4
+ const Conf = require('conf');
5
+ const clients = require('./src/clients');
6
+ const domains = require('./src/domains');
7
+ const quotations = require('./src/quotations');
8
+ const quotationItems = require('./src/quotation-items');
9
+ const me = require('./src/me');
10
+ const leave = require('./src/leave');
11
+
12
+ const config = new Conf({ projectName: 'hostlink-cli' });
13
+
14
+ const program = new Command();
15
+
16
+ program
17
+ .name('hostlink')
18
+ .description('HostLink CLI')
19
+ .version('1.0.0');
20
+
21
+ program
22
+ .command('set-token <token>')
23
+ .description('Save your access token')
24
+ .action((token) => {
25
+ config.set('token', token);
26
+ console.log('Token saved.');
27
+ });
28
+
29
+ me.register(program);
30
+ clients.register(program);
31
+ domains.register(program);
32
+ quotations.register(program);
33
+ quotationItems.register(program);
34
+ leave.register(program);
35
+
36
+ program.parse(process.argv);
package/package.json CHANGED
@@ -1,38 +1,39 @@
1
- {
2
- "name": "@hostlink/hostlink-cli",
3
- "version": "1.0.0",
4
- "description": "CLI tool for the HostLink platform",
5
- "main": "index.js",
6
- "bin": {
7
- "hostlink": "dist/bundle.js"
8
- },
9
- "files": [
10
- "dist/bundle.js"
11
- ],
12
- "publishConfig": {
13
- "access": "public"
14
- },
15
- "scripts": {
16
- "build": "esbuild index.js --bundle --platform=node --outfile=dist/bundle.js",
17
- "prepublishOnly": "npm run build"
18
- },
19
- "keywords": [
20
- "hostlink",
21
- "cli"
22
- ],
23
- "author": "HostLink",
24
- "license": "MIT",
25
- "repository": {
26
- "type": "git",
27
- "url": "https://github.com/HostLink/hostlink-cli"
28
- },
29
- "type": "commonjs",
30
- "dependencies": {
31
- "commander": "^14.0.3",
32
- "conf": "^10.2.0",
33
- "graphql-request": "^7.4.0"
34
- },
35
- "devDependencies": {
36
- "esbuild": "^0.27.4"
37
- }
38
- }
1
+ {
2
+ "name": "@hostlink/hostlink-cli",
3
+ "version": "1.0.2",
4
+ "description": "CLI tool for the HostLink platform",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "hostlink": "dist/bundle.js"
8
+ },
9
+ "files": [
10
+ "dist/bundle.js"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "scripts": {
16
+ "build": "esbuild index.js --bundle --platform=node --outfile=dist/bundle.js",
17
+ "prepublishOnly": "npm run build"
18
+ },
19
+ "keywords": [
20
+ "hostlink",
21
+ "cli"
22
+ ],
23
+ "author": "HostLink",
24
+ "license": "MIT",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/HostLink/hostlink-cli"
28
+ },
29
+ "type": "commonjs",
30
+ "dependencies": {
31
+ "commander": "^14.0.3",
32
+ "conf": "^10.2.0",
33
+ "graphql-request": "^7.4.0",
34
+ "inquirer": "^8.2.6"
35
+ },
36
+ "devDependencies": {
37
+ "esbuild": "^0.27.4"
38
+ }
39
+ }