Skip to content

Commit a602d18

Browse files
jackkavCurryYangxx
authored andcommitted
upgrade inso pkgs (#7592)
* upgrade cosmiconfig * remove one layer of indirection * more indirection * upgrade commander * fix tests * remove unusedExitoverride * flatten * inline * flatten config * fix test * docs * flatten logging * dont default to script * fix test docs and config search * refactor exportSpec * fixed test
1 parent 8441021 commit a602d18

16 files changed

Lines changed: 262 additions & 346 deletions

package-lock.json

Lines changed: 55 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/insomnia-inso/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"@stoplight/spectral-ruleset-bundler": "^1.5.2",
5252
"@stoplight/spectral-rulesets": "^1.18.1",
5353
"@stoplight/types": "^14.1.1",
54-
"commander": "^5.1.0",
54+
"commander": "^12.1.0",
5555
"consola": "^2.15.0",
56-
"cosmiconfig": "^6.0.0",
56+
"cosmiconfig": "^9.0.0",
5757
"enquirer": "^2.4.1",
5858
"insomnia-send-request": "../insomnia-send-request",
5959
"@seald-io/nedb": "^4.0.4",

packages/insomnia-inso/src/__snapshots__/inso-snapshot.test.ts.snap

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,21 @@ exports[`Snapshot for "inso --help" 1`] = `
44
"Usage: inso [options] [command]
55
66
A CLI for Insomnia!
7-
With this tool you can lint, test and export your Insomnia data.
8-
It can read from three data sources, but will use local Insomnia application data as a default:
9-
- Insomnia data directory (~/.config/Insomnia/)
10-
- Insomnia export file (eg. export.json)
11-
- Git repository (~/git/myproject)
7+
With this tool you can test, lint, and export your Insomnia data.
8+
9+
Inso accepts 3 types of input:
10+
Insomnia application data - will be automatically detected, or you can set --workingDir to an alternaitve application data path.
11+
Insomnia export files - set --src to the file path.
12+
Git repositories - set --workingDir to the repository path.
13+
14+
Inso also supports configuration files, by default it will look for .insorc in the current working directory or --workingDir.
1215
1316
1417
Options:
1518
-v, --version output the version number
16-
-w, --workingDir <dir> set working directory
19+
-w, --workingDir <dir> set working directory, defaults to current working
20+
directory, will detect a git repository or Insomnia
21+
data directory
1722
--src <file> set the file read from, defaults to installed
1823
Insomnia data directory
1924
--verbose show additional logs while running the command
@@ -34,16 +39,21 @@ exports[`Snapshot for "inso -h" 1`] = `
3439
"Usage: inso [options] [command]
3540
3641
A CLI for Insomnia!
37-
With this tool you can lint, test and export your Insomnia data.
38-
It can read from three data sources, but will use local Insomnia application data as a default:
39-
- Insomnia data directory (~/.config/Insomnia/)
40-
- Insomnia export file (eg. export.json)
41-
- Git repository (~/git/myproject)
42+
With this tool you can test, lint, and export your Insomnia data.
43+
44+
Inso accepts 3 types of input:
45+
Insomnia application data - will be automatically detected, or you can set --workingDir to an alternaitve application data path.
46+
Insomnia export files - set --src to the file path.
47+
Git repositories - set --workingDir to the repository path.
48+
49+
Inso also supports configuration files, by default it will look for .insorc in the current working directory or --workingDir.
4250
4351
4452
Options:
4553
-v, --version output the version number
46-
-w, --workingDir <dir> set working directory
54+
-w, --workingDir <dir> set working directory, defaults to current working
55+
directory, will detect a git repository or Insomnia
56+
data directory
4757
--src <file> set the file read from, defaults to installed
4858
Insomnia data directory
4959
--verbose show additional logs while running the command
@@ -88,16 +98,21 @@ exports[`Snapshot for "inso generate -h" 1`] = `
8898
"Usage: inso [options] [command]
8999
90100
A CLI for Insomnia!
91-
With this tool you can lint, test and export your Insomnia data.
92-
It can read from three data sources, but will use local Insomnia application data as a default:
93-
- Insomnia data directory (~/.config/Insomnia/)
94-
- Insomnia export file (eg. export.json)
95-
- Git repository (~/git/myproject)
101+
With this tool you can test, lint, and export your Insomnia data.
102+
103+
Inso accepts 3 types of input:
104+
Insomnia application data - will be automatically detected, or you can set --workingDir to an alternaitve application data path.
105+
Insomnia export files - set --src to the file path.
106+
Git repositories - set --workingDir to the repository path.
107+
108+
Inso also supports configuration files, by default it will look for .insorc in the current working directory or --workingDir.
96109
97110
98111
Options:
99112
-v, --version output the version number
100-
-w, --workingDir <dir> set working directory
113+
-w, --workingDir <dir> set working directory, defaults to current working
114+
directory, will detect a git repository or Insomnia
115+
data directory
101116
--src <file> set the file read from, defaults to installed
102117
Insomnia data directory
103118
--verbose show additional logs while running the command
@@ -118,16 +133,21 @@ exports[`Snapshot for "inso help" 1`] = `
118133
"Usage: inso [options] [command]
119134
120135
A CLI for Insomnia!
121-
With this tool you can lint, test and export your Insomnia data.
122-
It can read from three data sources, but will use local Insomnia application data as a default:
123-
- Insomnia data directory (~/.config/Insomnia/)
124-
- Insomnia export file (eg. export.json)
125-
- Git repository (~/git/myproject)
136+
With this tool you can test, lint, and export your Insomnia data.
137+
138+
Inso accepts 3 types of input:
139+
Insomnia application data - will be automatically detected, or you can set --workingDir to an alternaitve application data path.
140+
Insomnia export files - set --src to the file path.
141+
Git repositories - set --workingDir to the repository path.
142+
143+
Inso also supports configuration files, by default it will look for .insorc in the current working directory or --workingDir.
126144
127145
128146
Options:
129147
-v, --version output the version number
130-
-w, --workingDir <dir> set working directory
148+
-w, --workingDir <dir> set working directory, defaults to current working
149+
directory, will detect a git repository or Insomnia
150+
data directory
131151
--src <file> set the file read from, defaults to installed
132152
Insomnia data directory
133153
--verbose show additional logs while running the command

0 commit comments

Comments
 (0)