[DOC] fix config parameter
This commit is contained in:
parent
4aa8acabfc
commit
3649bdd1c3
|
@ -63,7 +63,7 @@ Usage:
|
||||||
yanic serve [flags]
|
yanic serve [flags]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
yanic serve -config /etc/yanic.toml
|
yanic serve --config /etc/yanic.toml
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
-c, --config string Path to configuration file (default "config.toml")
|
-c, --config string Path to configuration file (default "config.toml")
|
||||||
|
@ -77,7 +77,7 @@ Usage:
|
||||||
yanic import <file.rrd> [flags]
|
yanic import <file.rrd> [flags]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
yanic import -config /etc/yanic.toml olddata.rrd
|
yanic import --config /etc/yanic.toml olddata.rrd
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
-c, --config string Path to configuration file (default "config.toml")
|
-c, --config string Path to configuration file (default "config.toml")
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
var importCmd = &cobra.Command{
|
var importCmd = &cobra.Command{
|
||||||
Use: "import <file.rrd>",
|
Use: "import <file.rrd>",
|
||||||
Short: "Imports global statistics from the given RRD files, requires InfluxDB",
|
Short: "Imports global statistics from the given RRD files, requires InfluxDB",
|
||||||
Example: "yanic import -config /etc/yanic.toml olddata.rrd",
|
Example: "yanic import --config /etc/yanic.toml olddata.rrd",
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
path := args[0]
|
path := args[0]
|
||||||
|
|
|
@ -20,7 +20,7 @@ import (
|
||||||
var serveCmd = &cobra.Command{
|
var serveCmd = &cobra.Command{
|
||||||
Use: "serve",
|
Use: "serve",
|
||||||
Short: "Runs the yanic server",
|
Short: "Runs the yanic server",
|
||||||
Example: "yanic serve -config /etc/yanic.toml",
|
Example: "yanic serve --config /etc/yanic.toml",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
config := loadConfig()
|
config := loadConfig()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue