Skip to content

Commit

Permalink
Merge branch 'main' into PC-15533-sloctl-windows-config-file-rename-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nieomylnieja authored Feb 5, 2025
2 parents b1c34a7 + 1012943 commit 698c81c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dist/

# Code generation binaries
bin/
/sloctl

# Dependency directories (remove the comment below to include it)
# vendor/
Expand All @@ -27,9 +26,3 @@ bin/
node_modules/
yarn.lock
yarn-error.log

# Other editor or OS-specific files we don't want to commit by accident!
*~
*.bak
**/.envrc
**/.DS_Store
7 changes: 4 additions & 3 deletions internal/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ func (g *GetCmd) newGetAlertCommand(cmd *cobra.Command) *cobra.Command {
return err
}
if len(objects) == 0 {
fmt.Fprintf(os.Stderr, "No resources found in '%s' project.\n", g.client.Config.Project)
fmt.Printf("No resources found in '%s' project.\n", g.client.Config.Project)
return nil
}
if err = g.printObjects(objects); err != nil {
return err
Expand Down Expand Up @@ -394,9 +395,9 @@ func (g *GetCmd) getObjects(ctx context.Context, args []string, kind manifest.Ki
if len(objects) == 0 {
switch kind {
case manifest.KindProject, manifest.KindUserGroup, manifest.KindBudgetAdjustment, manifest.KindReport:
fmt.Fprintf(os.Stderr, "No resources found.\n")
fmt.Printf("No resources found.\n")
default:
fmt.Fprintf(os.Stderr, "No resources found in '%s' project.\n", g.client.Config.Project)
fmt.Printf("No resources found in '%s' project.\n", g.client.Config.Project)
}
return nil, nil
}
Expand Down

0 comments on commit 698c81c

Please sign in to comment.