From f7bd6a415581f79d3221557b2132dd0c0f148409 Mon Sep 17 00:00:00 2001 From: Rahul Jadhav Date: Sat, 1 Jul 2023 01:46:45 +0530 Subject: [PATCH] removed unnecessary prints Signed-off-by: Rahul Jadhav --- cmd/root.go | 2 -- pkg/config/config.go | 1 - pkg/version/version.go | 23 ----------------------- 3 files changed, 26 deletions(-) delete mode 100644 pkg/version/version.go diff --git a/cmd/root.go b/cmd/root.go index bdd4e22..beae59f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -23,7 +23,6 @@ import ( "github.com/nyrahul/tabled/pkg/config" "github.com/nyrahul/tabled/pkg/drawtable" - "github.com/nyrahul/tabled/pkg/version" "github.com/spf13/cobra" ) @@ -49,7 +48,6 @@ func init() { // Execute adds all child commands to the root command and sets flags appropriately. // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { - log.Printf("version: %s\n", version.Version) cobra.CheckErr(rootCmd.Execute()) cfg.YamlCfg = config.LoadYAMLConfig(yamlFile) if strings.HasSuffix(cfg.InFile, ".csv") { diff --git a/pkg/config/config.go b/pkg/config/config.go index d881adf..23dd69c 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -64,7 +64,6 @@ func LoadYAMLConfig(file string) YamlConfig { if err != nil { log.Fatalf("failed reading from yaml config <%s> error: %v", file, err) } - log.Printf("reading from yaml config <%s>", file) y := YamlConfig{} err = yaml.Unmarshal([]byte(data), &y) if err != nil { diff --git a/pkg/version/version.go b/pkg/version/version.go deleted file mode 100644 index df2d6c4..0000000 --- a/pkg/version/version.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -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. -*/ - -// Package version provides a place to store version information, which can be -// set at build time. -package version - -// Version is the app-global version string, which should be substituted with a -// real value during build. -var Version = "UNKNOWN"