Skip to content

Commit

Permalink
✨ add the providers sub-command (#715)
Browse files Browse the repository at this point in the history
... identical to `cnquery providers`. Allows you to list + interact with
providers. 🦙

Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus authored Sep 11, 2023
1 parent 37a06c0 commit a4f2856
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
12 changes: 12 additions & 0 deletions apps/cnspec/cmd/providers.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package cmd

import (
cnquery_app "go.mondoo.com/cnquery/apps/cnquery/cmd"
)

func init() {
rootCmd.AddCommand(cnquery_app.ProvidersCmd)
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ require (
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c
github.com/spf13/viper v1.16.0
github.com/stretchr/testify v1.8.4
go.mondoo.com/cnquery v0.0.0-20230910231808-80eff9afbee9
go.mondoo.com/cnquery v0.0.0-20230911045628-392fb78e3a5b
go.mondoo.com/ranger-rpc v0.5.1
go.opentelemetry.io/otel v1.16.0
golang.org/x/sync v0.3.0 // indirect
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1053,10 +1053,8 @@ gitlab.com/bosi/decorder v0.4.1 h1:VdsdfxhstabyhZovHafFw+9eJ6eU0d2CkFNJcZz/NU4=
gitlab.com/bosi/decorder v0.4.1/go.mod h1:jecSqWUew6Yle1pCr2eLWTensJMmsxHsBwt+PVbkAqA=
go-simpler.org/assert v0.6.0 h1:QxSrXa4oRuo/1eHMXSBFHKvJIpWABayzKldqZyugG7E=
go-simpler.org/assert v0.6.0/go.mod h1:74Eqh5eI6vCK6Y5l3PI8ZYFXG4Sa+tkr70OIPJAUr28=
go.mondoo.com/cnquery v0.0.0-20230910082141-500a950f6444 h1:wPRiTH/HC67yYljO/dA50b/Udyr7uT781SSRqrFyZ9o=
go.mondoo.com/cnquery v0.0.0-20230910082141-500a950f6444/go.mod h1:gnKfYkas9di8/5WNwHT1gtWKy9BTp9u531iXBihm+L0=
go.mondoo.com/cnquery v0.0.0-20230910231808-80eff9afbee9 h1:8XgZDgve4SI68XTidEXxwAO8COEFI3BJSsIbiZgraS8=
go.mondoo.com/cnquery v0.0.0-20230910231808-80eff9afbee9/go.mod h1:gnKfYkas9di8/5WNwHT1gtWKy9BTp9u531iXBihm+L0=
go.mondoo.com/cnquery v0.0.0-20230911045628-392fb78e3a5b h1:CVA5KflTikF0PLQp5M23Qasvy/ePHVHvnw6HDUXbgnc=
go.mondoo.com/cnquery v0.0.0-20230911045628-392fb78e3a5b/go.mod h1:gnKfYkas9di8/5WNwHT1gtWKy9BTp9u531iXBihm+L0=
go.mondoo.com/ranger-rpc v0.5.1 h1:OaVQntDJWDRgbc9nXBP4wOCR9h9Bij8LgHHs86IguGk=
go.mondoo.com/ranger-rpc v0.5.1/go.mod h1:3YKcqFrlPgaB4FZ4EoLgdmRtwMQdO7RoAkZYFn+F1eY=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
Expand Down

0 comments on commit a4f2856

Please sign in to comment.