Skip to content

Commit 7c4e8b8

Browse files
committed
fixup: unexport fullVersion (only used inside cmd package)
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
1 parent b67c49d commit 7c4e8b8

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/cli/cmd/artifact.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func wrappedArtifactConn(cpConn *grpc.ClientConn, role pb.CASCredentialsServiceG
5353

5454
var opts = []grpcconn.Option{
5555
grpcconn.WithInsecure(apiInsecure()),
56-
grpcconn.WithCLIVersion(FullVersion()),
56+
grpcconn.WithCLIVersion(fullVersion()),
5757
}
5858

5959
if caValue := viper.GetString(confOptions.CASCA.viperKey); caValue != "" {

app/cli/cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func NewRootCmd(l zerolog.Logger) *cobra.Command {
134134

135135
var opts = []grpcconn.Option{
136136
grpcconn.WithInsecure(apiInsecure()),
137-
grpcconn.WithCLIVersion(FullVersion()),
137+
grpcconn.WithCLIVersion(fullVersion()),
138138
}
139139

140140
if caValue := viper.GetString(confOptions.controlplaneCA.viperKey); caValue != "" {
@@ -370,7 +370,7 @@ func initConfigFile() {
370370
}
371371

372372
func newActionOpts(logger zerolog.Logger, conn *grpc.ClientConn, token string) *action.ActionsOpts {
373-
return &action.ActionsOpts{CPConnection: conn, Logger: logger, AuthTokenRaw: token, OutputFormat: flagOutputFormat, CLIVersion: FullVersion()}
373+
return &action.ActionsOpts{CPConnection: conn, Logger: logger, AuthTokenRaw: token, OutputFormat: flagOutputFormat, CLIVersion: fullVersion()}
374374
}
375375

376376
func cleanup(conn *grpc.ClientConn) error {

app/cli/cmd/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ var (
3636
Edition = ossEdition
3737
)
3838

39-
// FullVersion returns the CLI version annotated with its edition flavor,
39+
// fullVersion returns the CLI version annotated with its edition flavor,
4040
// e.g. "v1.94.2-oss" or "dev-ee". Used as the value of the Chainloop-Cli-Version
4141
// header sent on every request to the Control Plane and CAS.
42-
func FullVersion() string {
42+
func fullVersion() string {
4343
return Version + "-" + Edition
4444
}
4545

0 commit comments

Comments
 (0)