Skip to content

Commit a2c8b23

Browse files
committed
chores: fix typos
Issue #3256 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
1 parent 78f6d41 commit a2c8b23

File tree

23 files changed

+72
-72
lines changed

23 files changed

+72
-72
lines changed

cmd/build_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestBuild_Default(t *testing.T) {
3939
testDefault(NewBuildCmd, t)
4040
}
4141

42-
// TestBuild_FunctionContext ensures that the function contectually relevant
42+
// TestBuild_FunctionContext ensures that the function contextually relevant
4343
// to the current command execution is loaded and used for flag defaults by
4444
// spot-checking the builder setting.
4545
func TestBuild_FunctionContext(t *testing.T) {

cmd/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func NewTestClient(options ...fn.Option) ClientFactory {
4848
}
4949

5050
// NewClient constructs an fn.Client with the majority of
51-
// the concrete implementations set. Provide additional Options to this constructor
51+
// the concrete implementations set. Provide additional Options to this constructor
5252
// to override or augment as needed, or override the ClientFactory passed to
5353
// commands entirely to mock for testing. Note the returned cleanup function.
5454
// 'Namespace' is optional. If not provided (see DefaultNamespace commentary),

cmd/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestListEnvs(t *testing.T) {
4343
t.Fatal(err)
4444
}
4545
if !envsEqual(envs, data) {
46-
t.Errorf("env mismatch, expedted %v but got %v", envs, data)
46+
t.Errorf("env mismatch, expected %v but got %v", envs, data)
4747
}
4848
}
4949

cmd/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func newCreateConfig(cmd *cobra.Command, args []string, newClient ClientFactory)
253253
return
254254
}
255255

256-
// Create a tempoarary client for use by the following prompts to complete
256+
// Create a temporary client for use by the following prompts to complete
257257
// runtime/template suggestions etc
258258
client, done := newClient(ClientConfig{Verbose: cfg.Verbose})
259259
defer done()

cmd/create_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ func TestCreate_ConfigOptional(t *testing.T) {
9595
t.Fatal(err)
9696
}
9797

98-
// Not failing is success. Config files or settings beyond what are
98+
// Not failing is success. Config files or settings beyond what are
9999
// automatically written to to the given config home are currently optional.
100100
}

cmd/deploy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ DESCRIPTION
6969
registry after being successfully built. The --push flag can be used
7070
to disable pushing. This could be used, for example, to trigger a redeploy
7171
of a service without needing to build, or even have the container available
72-
locally with '{{rootCmdUse}} deploy --build=false --push==false'.
72+
locally with '{{rootCmdUse}} deploy --build=false --push=false'.
7373
7474
Remote
7575
Building and pushing (deploying) is by default run on localhost. This
@@ -682,7 +682,7 @@ type deployConfig struct {
682682
// PVCSize configures the PVC size used by the pipeline if --remote flag is set.
683683
PVCSize string
684684

685-
// Timestamp the built contaienr with the current date and time.
685+
// Timestamp the built container with the current date and time.
686686
// This is currently only supported by the Pack builder.
687687
Timestamp bool
688688
}

cmd/mcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func runMCPStart(cmd *cobra.Command, args []string, newClient ClientFactory) err
101101
if val := os.Getenv("FUNC_ENABLE_MCP_WRITE"); val != "" {
102102
parsed, err := strconv.ParseBool(val)
103103
if err != nil {
104-
return fmt.Errorf("FUNC_ENABLE_MCP_WRITE shuold be a boolean (true/false, 1/0, etc). Received %q", val)
104+
return fmt.Errorf("FUNC_ENABLE_MCP_WRITE should be a boolean (true/false, 1/0, etc). Received %q", val)
105105
}
106106
writeEnabled = parsed
107107
}

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func mergeEnvs(envs []fn.Env, envToUpdate *util.OrderedMap, envToRemove []string
315315
return envs, counter, nil
316316
}
317317

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

328-
// addVerboseFlag ensures common text/wording when the --path flag is used
328+
// addVerboseFlag ensures common text/wording when the --verbose flag is used
329329
func addVerboseFlag(cmd *cobra.Command, dflt bool) {
330330
cmd.Flags().BoolP("verbose", "v", dflt, "Print verbose logs ($FUNC_VERBOSE)")
331331
}

docs/reference/func_deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ DESCRIPTION
4646
registry after being successfully built. The --push flag can be used
4747
to disable pushing. This could be used, for example, to trigger a redeploy
4848
of a service without needing to build, or even have the container available
49-
locally with 'func deploy --build=false --push==false'.
49+
locally with 'func deploy --build=false --push=false'.
5050

5151
Remote
5252
Building and pushing (deploying) is by default run on localhost. This

pkg/builders/s2i/builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func BuilderImage(f fn.Function, builderName string) (string, error) {
238238
// Returns a config with settings suitable for building runtimes which
239239
// support scaffolding.
240240
func scaffold(cfg *api.Config, f fn.Function) (*api.Config, error) {
241-
// Scafffolding is currently only supported by the Go and Python runtimes
241+
// Scaffolding is currently only supported by the Go and Python runtimes
242242
if f.Runtime != "go" && f.Runtime != "python" {
243243
return cfg, nil
244244
}
@@ -247,7 +247,7 @@ func scaffold(cfg *api.Config, f fn.Function) (*api.Config, error) {
247247
appRoot := filepath.Join(f.Root, contextDir)
248248
_ = os.RemoveAll(appRoot)
249249

250-
// The enbedded repository contains the scaffolding code itself which glues
250+
// The embedded repository contains the scaffolding code itself which glues
251251
// together the middleware and a function via main
252252
embeddedRepo, err := fn.NewRepository("", "") // default is the embedded fs
253253
if err != nil {

0 commit comments

Comments
 (0)