UNPKG

@fragment-dev/cli

Version:
33 lines (30 loc) 687 B
import { AuthenticatedCommand } from "./chunk-W7HG2VEH.js"; import { init_cjs_shims } from "./chunk-7GH3YGSC.js"; // src/commands/workspace.ts init_cjs_shims(); var Workspace = class extends AuthenticatedCommand { static { this.description = "Get the details of the workspace this CLI is authenticated to"; } static { this.examples = ["<%= config.bin %> <%= command.id %>"]; } static { this.help = "Get the details of the workspace this CLI is authenticated to"; } async run() { try { await this.sdk.GetWorkspace(); } catch (e) { this.logToStderr(`Encountered an error: ${e}`); this.exit(1); } } }; export { Workspace };