---
source: lib/src/sdk/typescript/types.rs
expression: "get_file(&output, \"types.ts\")"
---
// @generated by usage-cli from test.usage.kdl. Do not edit manually.
export const VERSION = "1.2.3";
/** A powerful CLI tool */
export const ABOUT = "A powerful CLI tool";
export const AUTHOR = "Jane Doe";

export type TargetChoice = "debug" | "release";
export type EnvChoice = "staging" | "production";

/** Global flags available on all subcommands. */
export interface GlobalFlags {
  /** Verbosity level */
  verbose?: number;
  /** Config file path. Environment variable: MYTOOL_CONFIG */
  config?: string;
}

export interface MytoolArgs {
  /** Input file */
  input: string;
  /** Extra files */
  extra: string[];
}

export interface MytoolFlags extends GlobalFlags {
  /** Show what would be done */
  dryRun?: boolean;
}

export interface BuildArgs {
  /** Build target */
  target: TargetChoice;
  /** Output directory */
  output: string;
}

export interface BuildFlags extends GlobalFlags {
  /** Parallel jobs */
  jobs?: string[];
  /** Build in release mode */
  release?: boolean;
}

export interface DeployArgs {
  /** Target environment */
  env: EnvChoice;
  /** Deployment tags. Min count: 1. Max count: 5 */
  tags: string[];
}

export interface DeployFlags extends GlobalFlags {
  /** Force deploy. @deprecated Use --confirm instead */
  force?: boolean;
  /** Confirm deployment */
  confirm?: boolean;
}
