docs: fix spelling issues (#25009)
This commit is contained in:
+1
-1
@@ -85,6 +85,6 @@ func newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts serverty
|
||||
```
|
||||
|
||||
Note, some of the options provided are exposed via CLI flags in the start command
|
||||
and some are also allowed to be set in the application's `app.toml`. It is recommend
|
||||
and some are also allowed to be set in the application's `app.toml`. It is recommended
|
||||
to use the `cast` package for type safety guarantees and due to the limitations of
|
||||
CLI flag types.
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ The global configuration instance exposed by the `viper` package is not
|
||||
used by Cosmos SDK in this function. A new instance of `viper.Viper` is created
|
||||
and the following is performed. The environmental variable prefix is set
|
||||
to the current program name. Environmental variables consider the underscore
|
||||
to be equivalent to the `.` or `-` character. This means that an configuration
|
||||
to be equivalent to the `.` or `-` character. This means that a configuration
|
||||
value called `rpc.laddr` would be read from an environmental variable called
|
||||
`MYTOOL_RPC_LADDR` if the current program name is `mytool`.
|
||||
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@ func ExportCmd(appExporter types.AppExporter, defaultNodeHome string) *cobra.Com
|
||||
|
||||
cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory")
|
||||
cmd.Flags().Int64(FlagHeight, -1, "Export state from a particular height (-1 means latest height)")
|
||||
cmd.Flags().Bool(FlagForZeroHeight, false, "Export state to start at height zero (perform preproccessing)")
|
||||
cmd.Flags().Bool(FlagForZeroHeight, false, "Export state to start at height zero (perform preprocessing)")
|
||||
cmd.Flags().StringSlice(FlagJailAllowedAddrs, []string{}, "Comma-separated list of operator addresses of jailed validators to unjail")
|
||||
cmd.Flags().StringSlice(FlagModulesToExport, []string{}, "Comma-separated list of modules to export. If empty, will export all modules")
|
||||
cmd.Flags().String(flags.FlagOutputDocument, "", "Exported state is written to the given file instead of STDOUT")
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ type (
|
||||
// via config file or through CLI arguments/flags. The underlying implementation
|
||||
// is defined by the server package and is typically implemented via a Viper
|
||||
// literal defined on the server Context. Note, casting Get calls may not yield
|
||||
// the expected types and could result in type assertion errors. It is recommend
|
||||
// the expected types and could result in type assertion errors. It is recommended
|
||||
// to either use the cast package or perform manual conversion for safety.
|
||||
AppOptions interface {
|
||||
Get(string) any
|
||||
|
||||
+1
-1
@@ -91,7 +91,7 @@ func TestInterceptConfigsPreRunHandlerCreatesConfigFilesWhenMissing(t *testing.T
|
||||
}
|
||||
|
||||
if !s.Mode().IsRegular() {
|
||||
t.Fatal("appp.toml not created as regular file")
|
||||
t.Fatal("app.toml not created as regular file")
|
||||
}
|
||||
|
||||
if s.Size() == 0 {
|
||||
|
||||
Reference in New Issue
Block a user