mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-08 10:46:13 +08:00
help message when in simulation mode
This commit is contained in:
@@ -71,6 +71,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
|
||||
}
|
||||
|
||||
if *locationPrefix != "" {
|
||||
infoAboutSimulationMode(writer, *apply, "-apply")
|
||||
locConf := &filer_pb.FilerConf_PathConf{
|
||||
LocationPrefix: *locationPrefix,
|
||||
Collection: *collection,
|
||||
@@ -128,3 +129,10 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
|
||||
return nil
|
||||
|
||||
}
|
||||
|
||||
func infoAboutSimulationMode(writer io.Writer, forceMode bool, forceModeOption string) {
|
||||
if forceMode {
|
||||
return
|
||||
}
|
||||
fmt.Fprintf(writer, "Running in simulation mode. Use \"%s\" option to apply the changes.\n", forceModeOption)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user