Skip to content

Commit

Permalink
fix alias list
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Feb 19, 2020
1 parent 1fc3cf1 commit 58c7662
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
# vendor/

go.sum
kubesql
2 changes: 1 addition & 1 deletion cmd/kubesql/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const fullVersionTemplate = "Client Version: %s\nServer Version: %s\n"

// Default aliases.
var defaultAliases = map[string]string{
"phase": "status.pahse",
"phase": "status.phase",
}

// Default table view fields.
Expand Down
4 changes: 2 additions & 2 deletions cmd/kubesql/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func main() {
cli.VersionPrinter = versionPrinter

app := &cli.App{
Name: "kubesql",
Version: "v0.1.2",
Name: appVersion["Name"],
Version: appVersion["Version"],
Usage: "uses sql like language to query the Kubernetes cluster manager.",
Flags: []cli.Flag{
&cli.StringFlag{
Expand Down
24 changes: 24 additions & 0 deletions cmd/kubesql/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright 2020 Yaacov Zamir <[email protected]>
// and other contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Author: 2020 Yaacov Zamir <[email protected]>

// Package main.
package main

var appVersion = map[string]string{
"Name": "kubesql",
"Version": "v0.1.2",
}

0 comments on commit 58c7662

Please sign in to comment.