|
1 | 1 | /* |
2 | | -Copyright © 2021 NAME HERE <EMAIL ADDRESS> |
| 2 | +Copyright © 2022 codeperf.io <[email protected]> |
3 | 3 |
|
4 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | you may not use this file except in compliance with the License. |
6 | 6 | You may obtain a copy of the License at |
7 | 7 |
|
8 | | - http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 |
|
10 | 10 | Unless required by applicable law or agreed to in writing, software |
11 | 11 | distributed under the License is distributed on an "AS IS" BASIS, |
@@ -43,12 +43,12 @@ var longDescription = ` __ ____ _ |
43 | 43 | \___/\____/\__,_/\___/ .___/\___/_/ /_/ (_) /_/\____/ |
44 | 44 | /_/ |
45 | 45 |
|
46 | | -Export and persist Go's profiling data locally, or into https://codeperf.io for FREE.` |
| 46 | +Export and persist Go's profiling data locally, or into https://codeperf.io.` |
47 | 47 |
|
48 | 48 | // rootCmd represents the base command when called without any subcommands |
49 | 49 | var rootCmd = &cobra.Command{ |
50 | 50 | Use: "pprof-exporter", |
51 | | - Short: "Export and persist Go's profiling data locally, or into https://codeperf.io for FREE.", |
| 51 | + Short: "Export and persist Go's profiling data locally, or into https://codeperf.io.", |
52 | 52 | Long: longDescription, |
53 | 53 | Run: exportLogic(), |
54 | 54 | } |
@@ -85,7 +85,7 @@ func init() { |
85 | 85 | // Cobra supports persistent flags, which, if defined here, |
86 | 86 | // will be global for your application. |
87 | 87 |
|
88 | | - rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.pprof-exporter.yaml)") |
| 88 | + rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.codeperf.yaml)") |
89 | 89 | rootCmd.PersistentFlags().BoolVar(&local, "local", false, "don't push the data to https://codeperf.io") |
90 | 90 | rootCmd.PersistentFlags().StringVar(&bench, "bench", "", "Benchmark name") |
91 | 91 | rootCmd.PersistentFlags().StringVar(&gitOrg, "git-org", defaultGitOrg, "git org") |
@@ -130,10 +130,10 @@ func initConfig() { |
130 | 130 | home, err := os.UserHomeDir() |
131 | 131 | cobra.CheckErr(err) |
132 | 132 |
|
133 | | - // Search config in home directory with name ".pprof-exporter" (without extension). |
| 133 | + // Search config in home directory with name ".codeperf" (without extension). |
134 | 134 | viper.AddConfigPath(home) |
135 | 135 | viper.SetConfigType("yaml") |
136 | | - viper.SetConfigName(".pprof-exporter") |
| 136 | + viper.SetConfigName(".codeperf") |
137 | 137 | } |
138 | 138 |
|
139 | 139 | viper.AutomaticEnv() // read in environment variables that match |
|
0 commit comments