Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add hardcoded operation command with no body #211

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

k3llymariee
Copy link
Contributor

@k3llymariee k3llymariee commented Apr 25, 2024

admittedly this probably didn't need to be its own PR, but we've added logging!

adds teams get --teamKey {team key}

note that the flag is camelcase, but that's how it comes from the openapi spec. we'll update this once we do the generation of OperationDate from the OpenAPI spec (comment left)

Comment on lines +22 to +29
PersistentPreRun: func(cmd *cobra.Command, args []string) {
analyticsTracker.SendCommandRunEvent(
viper.GetString(cliflags.AccessTokenFlag),
viper.GetString(cliflags.BaseURIFlag),
viper.GetBool(cliflags.AnalyticsOptOut),
cmdAnalytics.CmdRunEventProperties(cmd, resourceName),
)
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sunnyguduru this look about right to you? I tested this and it seems to be working. also yes i did have resourceName hardcoded as a string for some reason initially, which is why ben saw those logs 😬

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that looks right!

@k3llymariee k3llymariee merged commit c27e904 into main Apr 25, 2024
2 checks passed
@k3llymariee k3llymariee deleted the kelly/sc-241151/hardcoded-operation-command-no-body branch April 25, 2024 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants