From 459e7bb349ffe9870ed6fb27c6e804c6189c2c6a Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Sat, 1 Jun 2024 16:43:06 -0400 Subject: [PATCH] Typo fixes. --- cmd/korrel8rcli/main.go | 1 - cmd/korrel8rcli/operations.go | 4 ++-- pkg/build/build.go | 8 ++++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/cmd/korrel8rcli/main.go b/cmd/korrel8rcli/main.go index 4c727e0..21e4ec9 100644 --- a/cmd/korrel8rcli/main.go +++ b/cmd/korrel8rcli/main.go @@ -3,7 +3,6 @@ package main import ( - _ "embed" "log" "net/url" "path/filepath" diff --git a/cmd/korrel8rcli/operations.go b/cmd/korrel8rcli/operations.go index 0a04946..f990e40 100644 --- a/cmd/korrel8rcli/operations.go +++ b/cmd/korrel8rcli/operations.go @@ -84,7 +84,7 @@ var goalsCmd = &cobra.Command{ func commonFlags(cmd *cobra.Command) { rootCmd.AddCommand(cmd) cmd.Flags().StringArrayVar(&queries, "query", nil, "Query string for start objects, can be multiple.") - cmd.Flags().StringVar(&class, "class", "", "Class for serialized objects") + cmd.Flags().StringVar(&class, "class", "", "Class for serialized start objects") cmd.Flags().StringArrayVar(&objects, "object", nil, "Serialized start object, can be multiple.") cmd.Flags().BoolVar(&rules, "rules", false, "Include per-rule information in returned graph.") } @@ -93,5 +93,5 @@ func init() { commonFlags(neighboursCmd) neighboursCmd.Flags().Int64Var(&depth, "depth", 2, "Depth of neighbourhood search.") commonFlags(goalsCmd) - goalsCmd.Flags().StringArrayVar(&goals, "goal", nil, "Serialized start goal, can be multiple.") + goalsCmd.Flags().StringArrayVar(&goals, "goal", nil, "Goal class, can be multiple.") } diff --git a/pkg/build/build.go b/pkg/build/build.go index 095ed03..f58374c 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -1,9 +1,13 @@ package build -import "strings" +import ( + _ "embed" + "strings" +) var ( - version string //+embed:version.txt + //go:embed version.txt + version string // Version of the current build, a semver string. Version = strings.TrimSpace(version) )