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

CLI Update Version Notification #247

Merged
merged 4 commits into from
Aug 23, 2022
Merged

CLI Update Version Notification #247

merged 4 commits into from
Aug 23, 2022

Conversation

satakshigarg
Copy link
Contributor

Added notification to update the CLI version in error logs & added the daily reminder for CLI Version update.

cmd/root.go Outdated
@@ -112,6 +112,10 @@ var completionZshCmd = &cobra.Command{
},
}

func checkLatestReleaseTimestamp() {
Copy link
Member

Choose a reason for hiding this comment

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

This can be removed..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@@ -45,6 +49,21 @@ func Red(value string) string {

// Error is the function to handler all error in the Cli
func Error(msg string, args ...interface{}) {
githubTag := &latest.GithubTag{
Copy link
Member

Choose a reason for hiding this comment

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

If there are no cyclic imports, can we replace this bit with common.VersionCheck ? ˀ

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I have replaced it

@DMajrekar
Copy link
Contributor

We should update a doc somewhere, either the Readme.md or something inside the docs/ folder indicating the new functionality.

@satakshigarg
Copy link
Contributor Author

We should update a doc somewhere, either the Readme.md or something inside the docs/ folder indicating the new functionality.

Sure @DMajrekar . I'll create a Readme regarding the same.

@satakshigarg satakshigarg merged commit cc8b11b into master Aug 23, 2022
@satakshigarg satakshigarg deleted the CLI_Update_Version branch August 23, 2022 11:13
@satakshigarg satakshigarg restored the CLI_Update_Version branch August 23, 2022 11:13
@satakshigarg satakshigarg deleted the CLI_Update_Version branch August 23, 2022 11:14
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