Files
oneuptime/CLI/Index.ts
Nawaz Dhandala d25a97fe17 Refactor components for improved readability and consistency
- Added missing newlines at the end of files in MarkdownContent.tsx and RootCauseCard.tsx
- Reformatted shadowColor and color properties in NotesSection.tsx, SegmentedControl.tsx, MainTabNavigator.tsx, HomeScreen.tsx for better readability
- Enhanced code formatting in SectionHeader.tsx and OnCallStackNavigator.tsx for consistency
- Improved readability of getEntityId function in useAllProjectOnCallPolicies.ts
- Refactored conditional rendering in AlertDetailScreen.tsx, AlertEpisodeDetailScreen.tsx, IncidentDetailScreen.tsx, and IncidentEpisodeDetailScreen.tsx for better clarity
2026-02-15 11:47:32 +00:00

28 lines
930 B
TypeScript

#!/usr/bin/env npx ts-node
import { Command } from "commander";
import { registerConfigCommands } from "./Commands/ConfigCommands";
import { registerResourceCommands } from "./Commands/ResourceCommands";
import { registerUtilityCommands } from "./Commands/UtilityCommands";
const program: Command = new Command();
program
.name("oneuptime")
.description(
"OneUptime CLI - Manage your OneUptime resources from the command line",
)
.version("1.0.0")
.option("--api-key <key>", "API key (overrides config)")
.option("--url <url>", "OneUptime instance URL (overrides config)")
.option("--context <name>", "Use a specific context")
.option("-o, --output <format>", "Output format: json, table, wide")
.option("--no-color", "Disable colored output");
// Register command groups
registerConfigCommands(program);
registerUtilityCommands(program);
registerResourceCommands(program);
program.parse(process.argv);