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 validate API #12

Merged
merged 1 commit into from
Aug 24, 2023
Merged

feat: add validate API #12

merged 1 commit into from
Aug 24, 2023

Conversation

lingsamuel
Copy link
Contributor

No description provided.

Signed-off-by: Ling Samuel (WSL) <[email protected]>
func checkConfig() {
if rootConfig.Server == "" || rootConfig.Token == "" {
color.Yellow("adc hasn't been configured, you can use `adc configure` to configure adc")
os.Exit(0)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use non-zero return code, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure. I think both are OK

@lingsamuel lingsamuel merged commit a0fb895 into main Aug 24, 2023
@tao12345666333 tao12345666333 deleted the validate-api branch August 24, 2023 01:32
bzp2010 added a commit to bzp2010/adc that referenced this pull request Jul 12, 2024
bzp2010 pushed a commit to bzp2010/adc that referenced this pull request Jul 12, 2024
Signed-off-by: Ling Samuel (WSL) <[email protected]>
bzp2010 added a commit to bzp2010/adc that referenced this pull request Jul 12, 2024
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.

2 participants