@gravity-rail/cli 0.22.0 → 0.33.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/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-dl4gw0Fb.js';
3
- export { b as ConciergeAppContextPayload, c as buildCliConciergeAppContext } from './cli-client-context-dl4gw0Fb.js';
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
  *