diff --git a/pkg/cmd/dictionary/entries/browse/browse.go b/pkg/cmd/dictionary/entries/browse/browse.go index 4549bd46..c97b91d3 100644 --- a/pkg/cmd/dictionary/entries/browse/browse.go +++ b/pkg/cmd/dictionary/entries/browse/browse.go @@ -154,7 +154,7 @@ func runBrowseCmd(opts *BrowseOptions) error { for _, entry := range entries { if opts.IncludeDefaultStopwords { - // Print all entries (inlcuding the default Algolia stop words) + // Print all entries (including the default Algolia stop words) if err = p.Print(opts.IO, entry); err != nil { return err } diff --git a/pkg/cmd/dictionary/settings/set/set.go b/pkg/cmd/dictionary/settings/set/set.go index 9ecc96d5..ec7012aa 100644 --- a/pkg/cmd/dictionary/settings/set/set.go +++ b/pkg/cmd/dictionary/settings/set/set.go @@ -46,7 +46,7 @@ func NewSetCmd(f *cmdutil.Factory, runF func(*SetOptions) error) *cobra.Command You can turn the standard stop words dictionary on or off. `), Example: heredoc.Doc(` - # Tuen off standard entries for English and French + # Turn off standard entries for English and French $ algolia dictionary settings set --disable-standard-entries en,fr # Enable standard entries for English and French diff --git a/pkg/cmd/indices/config/export/export.go b/pkg/cmd/indices/config/export/export.go index 6ad890a9..69473281 100644 --- a/pkg/cmd/indices/config/export/export.go +++ b/pkg/cmd/indices/config/export/export.go @@ -37,7 +37,7 @@ func NewExportCmd(f *cmdutil.Factory) *cobra.Command { Export an index configuration (settings, synonyms, rules) to a file. `), Example: heredoc.Doc(` - # Export the config of the index 'MOVIES' to a .json filr in the current folder + # Export the config of the index 'MOVIES' to a .json file in the current folder $ algolia index config export MOVIES # Export the synonyms and rules of the index 'MOVIES' to a .json file in the current folder diff --git a/pkg/cmd/profile/setdefault/setdefault.go b/pkg/cmd/profile/setdefault/setdefault.go index da391616..20d8a5d0 100644 --- a/pkg/cmd/profile/setdefault/setdefault.go +++ b/pkg/cmd/profile/setdefault/setdefault.go @@ -82,11 +82,11 @@ func runSetDefaultCmd(opts *SetDefaultOptions) error { if opts.IO.IsStdoutTTY() { if defaultName != "" { - if _, err = fmt.Fprintf(opts.IO.Out, "%s Default profile successfuly changed from '%s' to '%s'.\n", cs.SuccessIcon(), defaultName, opts.Profile); err != nil { + if _, err = fmt.Fprintf(opts.IO.Out, "%s Default profile successfully changed from '%s' to '%s'.\n", cs.SuccessIcon(), defaultName, opts.Profile); err != nil { return err } } else { - if _, err = fmt.Fprintf(opts.IO.Out, "%s Default profile successfuly set to '%s'.\n", cs.SuccessIcon(), opts.Profile); err != nil { + if _, err = fmt.Fprintf(opts.IO.Out, "%s Default profile successfully set to '%s'.\n", cs.SuccessIcon(), opts.Profile); err != nil { return err } } diff --git a/pkg/cmd/profile/setdefault/setdefault_test.go b/pkg/cmd/profile/setdefault/setdefault_test.go index ce33395e..c2a9a4fb 100644 --- a/pkg/cmd/profile/setdefault/setdefault_test.go +++ b/pkg/cmd/profile/setdefault/setdefault_test.go @@ -24,21 +24,21 @@ func Test_runSetDefaultCmd(t *testing.T) { name: "existing default", cli: "foo", profiles: map[string]bool{"default": true, "foo": false}, - wantOut: "✓ Default profile successfuly changed from 'default' to 'foo'.\n", + wantOut: "✓ Default profile successfully changed from 'default' to 'foo'.\n", notWantErrOut: "state.toml", }, { name: "non-existing default", cli: "foo", profiles: map[string]bool{"foo": false}, - wantOut: "✓ Default profile successfuly set to 'foo'.\n", + wantOut: "✓ Default profile successfully set to 'foo'.\n", }, { name: "state file exists", cli: "foo", profiles: map[string]bool{"default": true, "foo": false}, hasStateFile: true, - wantOut: "✓ Default profile successfuly changed from 'default' to 'foo'.\n", + wantOut: "✓ Default profile successfully changed from 'default' to 'foo'.\n", wantErrOut: "changes to config.toml profiles will be ignored in a future version", }, } diff --git a/pkg/cmd/settings/set/set.go b/pkg/cmd/settings/set/set.go index fb919708..75f1bff1 100644 --- a/pkg/cmd/settings/set/set.go +++ b/pkg/cmd/settings/set/set.go @@ -57,7 +57,7 @@ func NewSetCmd(f *cmdutil.Factory) *cobra.Command { return err } - // Serialize / Deseralize the settings + // Serialize / Deserialize the settings tmp, err := json.Marshal(settings) if err != nil { return err diff --git a/pkg/cmd/synonyms/save/save.go b/pkg/cmd/synonyms/save/save.go index a1d13b3a..50be4f11 100644 --- a/pkg/cmd/synonyms/save/save.go +++ b/pkg/cmd/synonyms/save/save.go @@ -108,7 +108,7 @@ func NewSaveCmd(f *cmdutil.Factory, runF func(*SaveOptions) error) *cobra.Comman shared.Placeholder: "Used to place not-yet-defined tokens (that can take any value from a list of defined words).", })) cmd.Flags(). - BoolVarP(&opts.ForwardToReplicas, "forward-to-replicas", "f", false, "Whether to add the synoynm to replicas") + BoolVarP(&opts.ForwardToReplicas, "forward-to-replicas", "f", false, "Whether to add the synonym to replicas") // Regular synonym cmd.Flags().StringSliceVarP(&flags.Synonyms, "synonyms", "s", nil, "Synonyms to save") // One way synonym