Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/cmd/dictionary/entries/browse/browse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/dictionary/settings/set/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/indices/config/export/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/profile/setdefault/setdefault.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd/profile/setdefault/setdefault_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/settings/set/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/synonyms/save/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading