Skip to content

Commit

Permalink
Typo fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanconway committed Jun 1, 2024
1 parent 096a17a commit 459e7bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion cmd/korrel8rcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
package main

import (
_ "embed"
"log"
"net/url"
"path/filepath"
Expand Down
4 changes: 2 additions & 2 deletions cmd/korrel8rcli/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
Expand All @@ -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.")
}
8 changes: 6 additions & 2 deletions pkg/build/build.go
Original file line number Diff line number Diff line change
@@ -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)
)

0 comments on commit 459e7bb

Please sign in to comment.