Skip to content

Commit

Permalink
Merge branch 'main' into PC-13263-reports-kind
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-dobek authored Aug 13, 2024
2 parents 296e3b5 + 2a505d1 commit f44c1dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions internal/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ var projectFlagSupportingKinds = map[manifest.Kind]struct{}{
manifest.KindDataExport: {},
manifest.KindRoleBinding: {},
manifest.KindAnnotation: {},
// While Alert itself is not Project scoped per-se,
// it does support Project filtering.
manifest.KindAlert: {},
}

func objectKindSupportsProjectFlag(kind manifest.Kind) bool {
Expand Down
2 changes: 1 addition & 1 deletion internal/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (g *GetCmd) newGetAlertCommand(cmd *cobra.Command) *cobra.Command {
return err
}
if len(objects) == 0 {
fmt.Printf("No resources found.\n")
fmt.Printf("No resources found in '%s' project.\n", g.client.Config.Project)
return nil
}
if err = g.printObjects(objects); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"devDependencies": {
"cspell": "8.13.1",
"cspell": "8.13.3",
"markdownlint-cli": "0.41.0",
"yaml": "2.5.0"
},
Expand Down

0 comments on commit f44c1dc

Please sign in to comment.