Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
change 'credits log' command to 'usage', more intuitive
Dane Schneiderb7109ee789c9
diff --git a/app/cli/cmd/credits.go b/app/cli/cmd/credits.goindex 4b096318..aec382af 100644--- a/app/cli/cmd/credits.go+++ b/app/cli/cmd/credits.go@@ -54,5 +54,5 @@ func credits(cmd *cobra.Command, args []string) {table.Render()fmt.Println()- term.PrintCmds("", "credits log", "billing")+ term.PrintCmds("", "usage", "billing")}diff --git a/app/cli/cmd/credits_log.go b/app/cli/cmd/credits_log.goindex 2d9aaae8..a126f6d6 100644--- a/app/cli/cmd/credits_log.go+++ b/app/cli/cmd/credits_log.go@@ -22,19 +22,17 @@ const MaxCreditsLogPageSize = 500var logCreditsPageSize intvar logCreditsPage int-var creditsLogCmd = &cobra.Command{- Use: "log",+var usageCmd = &cobra.Command{+ Use: "usage",Short: "Display the credits transactions log",Run: creditsLog,}func init() {- creditsLogCmd.Flags().IntVarP(&logCreditsPageSize, "page-size", "s", 20, "Number of transactions to display per page")- creditsLogCmd.Flags().IntVarP(&logCreditsPage, "page", "p", 1, "Page number to display")-- // subcommand of 'credits'- creditsCmd.AddCommand(creditsLogCmd)+ usageCmd.Flags().IntVarP(&logCreditsPageSize, "page-size", "s", 20, "Number of transactions to display per page")+ usageCmd.Flags().IntVarP(&logCreditsPage, "page", "p", 1, "Page number to display")+ RootCmd.AddCommand(usageCmd)}func creditsLog(cmd *cobra.Command, args []string) {diff --git a/app/cli/term/help.go b/app/cli/term/help.goindex ecc51bd8..b25831b6 100644--- a/app/cli/term/help.go+++ b/app/cli/term/help.go@@ -67,7 +67,7 @@ var CmdDesc = map[string][2]string{"revoke": {"", "revoke an invite or remove a user from your org"},"users": {"", "list users and pending invites in your org"},"credits": {"", "show Plandex Cloud credits balance"},- "credits log": {"", "show Plandex Cloud credits transaction log"},+ "usage": {"", "show Plandex Cloud credits transaction log"},"billing": {"", "show Plandex Cloud billing settings"},}@@ -182,7 +182,7 @@ func PrintCustomHelp(all bool) {fmt.Fprintln(builder)color.New(color.Bold, color.BgCyan, color.FgHiWhite).Fprintln(builder, " Cloud ")- printCmds(builder, " ", []color.Attribute{color.Bold, ColorHiCyan}, "credits", "credits log", "billing")+ printCmds(builder, " ", []color.Attribute{color.Bold, ColorHiCyan}, "credits", "usage", "billing")} else {diff --git a/docs/docs/cli-reference.md b/docs/docs/cli-reference.mdindex 10fab961..4e546b8f 100644--- a/docs/docs/cli-reference.md+++ b/docs/docs/cli-reference.md@@ -671,10 +671,10 @@ Show your current credits balance.plandex credits```-### credits log+### usageShow the credits usage log, including all model calls and responses.```bash-plandex credits log+plandex usage```diff --git a/docs/docs/hosting/cloud.md b/docs/docs/hosting/cloud.mdindex 936febf6..c4578b42 100644--- a/docs/docs/hosting/cloud.md+++ b/docs/docs/hosting/cloud.md@@ -40,7 +40,7 @@ If you're using **Integrated Models Mode**, you can use the billing settings pagYou can also see your credits balance in the terminal with `plandex credits`.-You can see a full history of your usage that includes every model call and response with `plandex credits log`.+You can see a full history of your usage that includes every model call and response with `plandex usage`.## Privacy / Data Retention