Skip to content

Commit add2029

Browse files
authored
Merge pull request #248 from shelltime/feat/init-auto-install-otel-configs
feat(init): auto-install CC and Codex OTEL configs during init
2 parents 9970fc0 + 9492cd9 commit add2029

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

commands/init.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
var InitCommand *cli.Command = &cli.Command{
99
Name: "init",
10-
Usage: "Initialize shelltime: authenticate, install hooks, and start daemon",
10+
Usage: "Initialize shelltime: authenticate, install hooks, start daemon, and configure AI code integrations",
1111
Flags: []cli.Flag{
1212
&cli.StringFlag{
1313
Name: "token",
@@ -37,6 +37,16 @@ func commandInit(c *cli.Context) error {
3737
return err
3838
}
3939

40+
// Step 4: Install Claude Code OTEL configuration
41+
if err := commandCCInstall(c); err != nil {
42+
color.Red.Printf("Failed to install Claude Code OTEL config: %v\n", err)
43+
}
44+
45+
// Step 5: Install Codex OTEL configuration
46+
if err := commandCodexInstall(c); err != nil {
47+
color.Red.Printf("Failed to install Codex OTEL config: %v\n", err)
48+
}
49+
4050
color.Green.Println("ShellTime is fully initialized and ready to use!")
4151
return nil
4252
}

0 commit comments

Comments
 (0)