Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion authconfig/authconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
// Config holds the persisted CLI configuration.
type Config struct {
APIKey string `yaml:"api_key"`
SimAPIKey string `yaml:"sim_api_key,omitempty"`
Telemetry *bool `yaml:"telemetry,omitempty"`
}

Expand Down
9 changes: 2 additions & 7 deletions cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"github.com/duneanalytics/cli/cmd/execution"
"github.com/duneanalytics/cli/cmd/matview"
"github.com/duneanalytics/cli/cmd/query"
"github.com/duneanalytics/cli/cmd/sim"
"github.com/duneanalytics/cli/cmd/usage"
"github.com/duneanalytics/cli/cmd/visualization"
"github.com/duneanalytics/cli/cmd/whoami"
Expand All @@ -45,7 +44,6 @@ var rootCmd = &cobra.Command{
" - Create and manage visualizations (charts, tables, counters) on query results\n" +
" - Create and manage dashboards with visualizations and text widgets\n" +
" - Browse Dune documentation for DuneSQL syntax, API references, and guides\n" +
" - Query real-time wallet and token data via the Sim API\n" +
" - Monitor credit usage, storage consumption, and billing periods\n\n" +
"Authenticate with an API key via --api-key, the DUNE_API_KEY environment variable,\n" +
"or by running `dune auth`.",
Expand Down Expand Up @@ -110,8 +108,7 @@ var rootCmd = &cobra.Command{
commandPath = parts[1]
}

isSim := strings.HasPrefix(commandPath, "sim")
tr.Track(commandPath, tracking.StatusSuccess, "", durationMs, isSim)
tr.Track(commandPath, tracking.StatusSuccess, "", durationMs)
return nil
},
}
Expand All @@ -127,7 +124,6 @@ func init() {
rootCmd.AddCommand(execution.NewExecutionCmd())
rootCmd.AddCommand(usage.NewUsageCmd())
rootCmd.AddCommand(whoami.NewWhoAmICmd())
rootCmd.AddCommand(sim.NewSimCmd())
rootCmd.AddCommand(visualization.NewVisualizationCmd())
rootCmd.AddCommand(dashboard.NewDashboardCmd())
}
Expand All @@ -152,8 +148,7 @@ func Execute(version, commit, date, amplitudeKey string) {
); err != nil {
// Build best-effort command path from os.Args (strip flags).
commandPath := commandPathFromArgs(os.Args)
isSim := strings.HasPrefix(commandPath, "sim")
tracker.Track(commandPath, tracking.StatusError, err.Error(), 0, isSim)
tracker.Track(commandPath, tracking.StatusError, err.Error(), 0)
// Flush the event before exiting — os.Exit does not run deferred funcs,
// so defer tracker.Shutdown() above would never fire.
tracker.Shutdown()
Expand Down
74 changes: 0 additions & 74 deletions cmd/sim/auth.go

This file was deleted.

124 changes: 0 additions & 124 deletions cmd/sim/auth_test.go

This file was deleted.

123 changes: 0 additions & 123 deletions cmd/sim/client.go

This file was deleted.

Loading
Loading