File tree Expand file tree Collapse file tree
packages/opencode/src/cli/cmd/debug Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { ScrapCommand } from "./scrap"
99import { SkillCommand } from "./skill"
1010import { SnapshotCommand } from "./snapshot"
1111import { AgentCommand } from "./agent"
12+ import { StartupCommand } from "./startup"
1213
1314export const DebugCommand = cmd ( {
1415 command : "debug" ,
@@ -22,6 +23,7 @@ export const DebugCommand = cmd({
2223 . command ( ScrapCommand )
2324 . command ( SkillCommand )
2425 . command ( SnapshotCommand )
26+ . command ( StartupCommand )
2527 . command ( AgentCommand )
2628 . command ( PathsCommand )
2729 . command ( {
Original file line number Diff line number Diff line change 1+ import { EOL } from "os"
2+ import { cmd } from "../cmd"
3+
4+ export const StartupCommand = cmd ( {
5+ command : "startup" ,
6+ describe : "print startup timing" ,
7+ builder : ( yargs ) => yargs ,
8+ handler ( ) {
9+ process . stdout . write ( performance . now ( ) . toString ( ) + EOL )
10+ } ,
11+ } )
You can’t perform that action at this time.
0 commit comments