Skip to content

Commit f1fa8c0

Browse files
committed
change to agent
1 parent 7c9c892 commit f1fa8c0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmd/lk/agent.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,9 @@ func createAgent(ctx context.Context, cmd *cli.Command) error {
541541

542542
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir))
543543
if err != nil {
544-
return fmt.Errorf("unable to determine app language: %w, please make sure you are inside an app directory and are using a supported language", err)
544+
return fmt.Errorf("unable to determine agent language: %w, please make sure you are inside a directory containing an agent written in a supported language", err)
545545
}
546-
fmt.Printf("Detected app language [%s]\n", util.Accented(string(projectType)))
546+
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType)))
547547

548548
if err := requireDockerfile(ctx, cmd, workingDir, projectType, settingsMap); err != nil {
549549
return err
@@ -717,9 +717,9 @@ func deployAgent(ctx context.Context, cmd *cli.Command) error {
717717

718718
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir))
719719
if err != nil {
720-
return fmt.Errorf("unable to determine app language: %w, please make sure you are inside an app directory and are using a supported language", err)
720+
return fmt.Errorf("unable to determine agent language: %w, please make sure you are inside a directory containing an agent written in a supported language", err)
721721
}
722-
fmt.Printf("Detected app language [%s]\n", util.Accented(string(projectType)))
722+
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType)))
723723

724724
settingsMap, err := getClientSettings(ctx, cmd.Bool("silent"))
725725
if err != nil {
@@ -1438,9 +1438,9 @@ func generateAgentDockerfile(ctx context.Context, cmd *cli.Command) error {
14381438

14391439
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir))
14401440
if err != nil {
1441-
return fmt.Errorf("unable to determine app language: %w, please make sure you are inside an app directory and are using a supported language", err)
1441+
return fmt.Errorf("unable to determine agent language: %w, please make sure you are inside a directory containing an agent written in a supported language", err)
14421442
}
1443-
fmt.Printf("Detected app language [%s]\n", util.Accented(string(projectType)))
1443+
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType)))
14441444

14451445
dockerfilePath := filepath.Join(workingDir, "Dockerfile")
14461446
dockerignorePath := filepath.Join(workingDir, ".dockerignore")

0 commit comments

Comments
 (0)