@shuffl/cli 0.1.0 → 0.2.1
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.
- package/README.md +1 -1
- package/dist/commands.generated.js +7500 -3934
- package/dist/index.js +2 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -118,7 +118,7 @@ export async function runCli(args, io = {
|
|
|
118
118
|
baseUrl,
|
|
119
119
|
token,
|
|
120
120
|
});
|
|
121
|
-
const
|
|
121
|
+
const team = await request(() => client.teams.current());
|
|
122
122
|
await mkdir(dirname(configFile), { mode: 0o700, recursive: true });
|
|
123
123
|
const temporary = `${configFile}.${randomUUID()}.tmp`;
|
|
124
124
|
try {
|
|
@@ -132,9 +132,7 @@ export async function runCli(args, io = {
|
|
|
132
132
|
finally {
|
|
133
133
|
await rm(temporary, { force: true });
|
|
134
134
|
}
|
|
135
|
-
io.stdout(json
|
|
136
|
-
? JSON.stringify({ workspace }) + '\n'
|
|
137
|
-
: `Signed in to ${workspace.name}.\n`);
|
|
135
|
+
io.stdout(json ? JSON.stringify({ team }) + '\n' : `Signed in to ${team.name}.\n`);
|
|
138
136
|
return 0;
|
|
139
137
|
}
|
|
140
138
|
const command = commands.find((c) => c.command.join(' ') === positional.join(' '));
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@orpc/client": "1.15.3",
|
|
4
|
-
"@shuffl/api-contracts": "0.1
|
|
5
|
-
"@shuffl/sdk": "0.1
|
|
4
|
+
"@shuffl/api-contracts": "0.2.1",
|
|
5
|
+
"@shuffl/sdk": "0.2.1"
|
|
6
6
|
},
|
|
7
7
|
"description": "Shuffl command line: every public API operation as a scriptable command with JSON output.",
|
|
8
8
|
"engines": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"sideEffects": false,
|
|
34
34
|
"type": "module",
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
|
-
"version": "0.1
|
|
36
|
+
"version": "0.2.1",
|
|
37
37
|
"bin": {
|
|
38
38
|
"shuffl": "./dist/bin.js"
|
|
39
39
|
}
|