Skip to content
Merged
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 cmd/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestBuild_Default(t *testing.T) {
testDefault(NewBuildCmd, t)
}

// TestBuild_FunctionContext ensures that the function contectually relevant
// TestBuild_FunctionContext ensures that the function contextually relevant
// to the current command execution is loaded and used for flag defaults by
// spot-checking the builder setting.
func TestBuild_FunctionContext(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewTestClient(options ...fn.Option) ClientFactory {
}

// NewClient constructs an fn.Client with the majority of
// the concrete implementations set. Provide additional Options to this constructor
// the concrete implementations set. Provide additional Options to this constructor
// to override or augment as needed, or override the ClientFactory passed to
// commands entirely to mock for testing. Note the returned cleanup function.
// 'Namespace' is optional. If not provided (see DefaultNamespace commentary),
Expand Down
2 changes: 1 addition & 1 deletion cmd/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestListEnvs(t *testing.T) {
t.Fatal(err)
}
if !envsEqual(envs, data) {
t.Errorf("env mismatch, expedted %v but got %v", envs, data)
t.Errorf("env mismatch, expected %v but got %v", envs, data)
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func newCreateConfig(cmd *cobra.Command, args []string, newClient ClientFactory)
return
}

// Create a tempoarary client for use by the following prompts to complete
// Create a temporary client for use by the following prompts to complete
// runtime/template suggestions etc
client, done := newClient(ClientConfig{Verbose: cfg.Verbose})
defer done()
Expand Down
2 changes: 1 addition & 1 deletion cmd/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ func TestCreate_ConfigOptional(t *testing.T) {
t.Fatal(err)
}

// Not failing is success. Config files or settings beyond what are
// Not failing is success. Config files or settings beyond what are
// automatically written to to the given config home are currently optional.
}
4 changes: 2 additions & 2 deletions cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ DESCRIPTION
registry after being successfully built. The --push flag can be used
to disable pushing. This could be used, for example, to trigger a redeploy
of a service without needing to build, or even have the container available
locally with '{{rootCmdUse}} deploy --build=false --push==false'.
locally with '{{rootCmdUse}} deploy --build=false --push=false'.

Remote
Building and pushing (deploying) is by default run on localhost. This
Expand Down Expand Up @@ -682,7 +682,7 @@ type deployConfig struct {
// PVCSize configures the PVC size used by the pipeline if --remote flag is set.
PVCSize string

// Timestamp the built contaienr with the current date and time.
// Timestamp the built container with the current date and time.
// This is currently only supported by the Pack builder.
Timestamp bool
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/mcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func runMCPStart(cmd *cobra.Command, args []string, newClient ClientFactory) err
if val := os.Getenv("FUNC_ENABLE_MCP_WRITE"); val != "" {
parsed, err := strconv.ParseBool(val)
if err != nil {
return fmt.Errorf("FUNC_ENABLE_MCP_WRITE shuold be a boolean (true/false, 1/0, etc). Received %q", val)
return fmt.Errorf("FUNC_ENABLE_MCP_WRITE should be a boolean (true/false, 1/0, etc). Received %q", val)
}
writeEnabled = parsed
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func mergeEnvs(envs []fn.Env, envToUpdate *util.OrderedMap, envToRemove []string
return envs, counter, nil
}

// addConfirmFlag ensures common text/wording when the --path flag is used
// addConfirmFlag ensures common text/wording when the --confirm flag is used
func addConfirmFlag(cmd *cobra.Command, dflt bool) {
cmd.Flags().BoolP("confirm", "c", dflt, "Prompt to confirm options interactively ($FUNC_CONFIRM)")
}
Expand All @@ -325,7 +325,7 @@ func addPathFlag(cmd *cobra.Command) {
cmd.Flags().StringP("path", "p", "", "Path to the function. Default is current directory ($FUNC_PATH)")
}

// addVerboseFlag ensures common text/wording when the --path flag is used
// addVerboseFlag ensures common text/wording when the --verbose flag is used
func addVerboseFlag(cmd *cobra.Command, dflt bool) {
cmd.Flags().BoolP("verbose", "v", dflt, "Print verbose logs ($FUNC_VERBOSE)")
}
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/func_deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ DESCRIPTION
registry after being successfully built. The --push flag can be used
to disable pushing. This could be used, for example, to trigger a redeploy
of a service without needing to build, or even have the container available
locally with 'func deploy --build=false --push==false'.
locally with 'func deploy --build=false --push=false'.

Remote
Building and pushing (deploying) is by default run on localhost. This
Expand Down
Loading
Loading