UNPKG

browse

Version:

Unified Browserbase CLI for browser automation and cloud APIs.

37 lines (36 loc) • 1.14 kB
import { Flags } from "@oclif/core"; export const listSecretsFlags = { limit: Flags.integer({ min: 1, max: 1000, description: "Maximum results per page (API default: 20).", }), cursor: Flags.string({ description: "nextCursor from the previous page. Keep the same filters.", }), "start-at": Flags.string({ description: "Include secrets created on or after this RFC 3339 timestamp.", }), "end-at": Flags.string({ description: "Include secrets created on or before this RFC 3339 timestamp.", }), }; export function toListSecretsOptions(flags) { return { limit: flags.limit, cursor: flags.cursor, startAt: flags["start-at"], endAt: flags["end-at"], }; } export const secretInputFlags = { env: Flags.string({ description: "Read the secret value from the named environment variable.", helpValue: "VARIABLE_NAME", exclusive: ["stdin"], }), stdin: Flags.boolean({ description: "Read the exact secret value from stdin, preserving whitespace.", exclusive: ["env"], }), };