@gravity-rail/cli 0.22.0 → 0.32.0
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 +26 -7
- package/dist/{account-verify-phone-QJDC57CB.js → account-verify-phone-5DY6ETMV.js} +3 -3
- package/dist/{chunk-IYCL6P6B.js → chunk-IGZVMTG5.js} +212 -39
- package/dist/chunk-IGZVMTG5.js.map +1 -0
- package/dist/{chunk-EGO3LMNZ.js → chunk-KHUZAYUS.js} +14 -10
- package/dist/chunk-KHUZAYUS.js.map +1 -0
- package/dist/{cli-client-context-dl4gw0Fb.d.ts → cli-client-context-cd5f2JKX.d.ts} +46 -2
- package/dist/cli-utils.d.ts +13 -2
- package/dist/cli-utils.js +7 -1
- package/dist/gr.js +6098 -515
- package/dist/gr.js.map +1 -1
- package/dist/lib.d.ts +15 -3
- package/dist/lib.js +2586 -427
- package/dist/lib.js.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-EGO3LMNZ.js.map +0 -1
- package/dist/chunk-IYCL6P6B.js.map +0 -1
- /package/dist/{account-verify-phone-QJDC57CB.js.map → account-verify-phone-5DY6ETMV.js.map} +0 -0
package/dist/lib.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GravityRailClient, PhoneCall } from '@gravity-rail/sdk';
|
|
2
|
-
import { E as EnvironmentConfig, C as CredentialsManager, a as CLICredentials } from './cli-client-context-
|
|
3
|
-
export { b as ConciergeAppContextPayload, c as buildCliConciergeAppContext } from './cli-client-context-
|
|
2
|
+
import { E as EnvironmentConfig, C as CredentialsManager, a as CLICredentials } from './cli-client-context-cd5f2JKX.js';
|
|
3
|
+
export { b as ConciergeAppContextPayload, c as buildCliConciergeAppContext } from './cli-client-context-cd5f2JKX.js';
|
|
4
4
|
|
|
5
5
|
/** Metadata extracted from a paginated API response */
|
|
6
6
|
interface PaginationMeta {
|
|
@@ -173,6 +173,8 @@ interface GlobalOptions {
|
|
|
173
173
|
allowWrite?: boolean;
|
|
174
174
|
/** Named credential profile (`--profile` / GRAVITY_RAIL_PROFILE). */
|
|
175
175
|
profile?: string;
|
|
176
|
+
/** Directory to classify as a linked worktree. Defaults to `process.cwd()`. */
|
|
177
|
+
startDir?: string;
|
|
176
178
|
}
|
|
177
179
|
interface PublicGlobalOptions {
|
|
178
180
|
env?: string;
|
|
@@ -184,6 +186,8 @@ interface PublicGlobalOptions {
|
|
|
184
186
|
allowWrite?: boolean;
|
|
185
187
|
/** Named credential profile (`--profile` / GRAVITY_RAIL_PROFILE). */
|
|
186
188
|
profile?: string;
|
|
189
|
+
/** Directory to classify as a linked worktree. Defaults to `process.cwd()`. */
|
|
190
|
+
startDir?: string;
|
|
187
191
|
}
|
|
188
192
|
interface CommandContext {
|
|
189
193
|
env: string;
|
|
@@ -238,9 +242,17 @@ interface ArgDef {
|
|
|
238
242
|
description: string;
|
|
239
243
|
required?: boolean;
|
|
240
244
|
isFlag?: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* The flag may be given more than once and every occurrence is kept.
|
|
247
|
+
*
|
|
248
|
+
* Without it the last occurrence silently wins, which is the wrong answer
|
|
249
|
+
* for a genuinely repeatable argument: `--target a --target b` would apply
|
|
250
|
+
* to `b` alone and report success, having never touched `a`.
|
|
251
|
+
*/
|
|
252
|
+
repeatable?: boolean;
|
|
241
253
|
default?: string | boolean;
|
|
242
254
|
}
|
|
243
|
-
type ParsedArgs = Record<string, string | boolean | undefined>;
|
|
255
|
+
type ParsedArgs = Record<string, string | boolean | string[] | undefined>;
|
|
244
256
|
/**
|
|
245
257
|
* Context passed to a command handler.
|
|
246
258
|
*
|