Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix automated doc
Browse files Browse the repository at this point in the history
feloy committed Jul 28, 2023

Verified

This commit was signed with the committer’s verified signature.
yuyichao Yichao Yu
1 parent 93208dd commit d2eaa8e
Showing 8 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ $ odo init
Interactive mode enabled, please answer the following questions:
✓ Determining a Devfile for the current directory [1s]
Based on the files in the current directory odo detected
Supported architectures: all
Language: JavaScript
Project type: Node.js
Application ports: 8080
Original file line number Diff line number Diff line change
@@ -7,6 +7,12 @@ $ odo init
\__/

Interactive mode enabled, please answer the following questions:
? Select architectures to support: [Use arrows to move, space to select, <right> to all, <left> to none, type to filter]
> [x] amd64
[ ] arm64
[ ] ppc64le
[ ] s390x
? Select architectures to support: amd64
? Select language: Java
? Select project type: Maven Java
✓ Downloading devfile "java-maven" from registry "DefaultDevfileRegistry" [4s]
Original file line number Diff line number Diff line change
@@ -9,10 +9,17 @@ $ odo init
Interactive mode enabled, please answer the following questions:
✓ Determining a Devfile for the current directory [1s]
Based on the files in the current directory odo detected
Supported architectures: all
Language: .NET
Project type: dotnet
The devfile "dotnet50:1.0.3" from the registry "DefaultDevfileRegistry" will be downloaded.
The devfile "dotnet60:1.0.2" from the registry "DefaultDevfileRegistry" will be downloaded.
? Is this correct? No
? Select architectures to support: [Use arrows to move, space to select, <right> to all, <left> to none, type to filter]
> [x] amd64
[ ] arm64
[ ] ppc64le
[ ] s390x
? Select architectures to support: amd64
? Select language: .NET
? Select project type: .NET 6.0
✓ Downloading devfile "dotnet60" from registry "DefaultDevfileRegistry" [3s]
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ $ odo init
Interactive mode enabled, please answer the following questions:
✓ Determining a Devfile for the current directory [1s]
Based on the files in the current directory odo detected
Supported architectures: all
Language: Go
Project type: Go
Application ports: 8080
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ $ odo init
Interactive mode enabled, please answer the following questions:
✓ Determining a Devfile for the current directory [1s]
Based on the files in the current directory odo detected
Supported architectures: all
Language: Java
Project type: springboot
The devfile "java-springboot:1.2.0" from the registry "DefaultDevfileRegistry" will be downloaded.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ $ odo init
Interactive mode enabled, please answer the following questions:
✓ Determining a Devfile for the current directory [1s]
Based on the files in the current directory odo detected
Supported architectures: all
Language: JavaScript
Project type: Node.js
Application ports: 3000
Original file line number Diff line number Diff line change
@@ -32,6 +32,9 @@ var _ = Describe("doc command reference odo init", Label(helper.LabelNoCluster),
It("Empty directory", func() {
args := []string{"odo", "init"}
out, err := helper.RunInteractive(args, []string{"ODO_LOG_LEVEL=0"}, func(ctx helper.InteractiveContext) {
helper.ExpectString(ctx, "Select architectures")
helper.SendLine(ctx, "")

helper.ExpectString(ctx, "Select language")
helper.SendLine(ctx, "Java")

Original file line number Diff line number Diff line change
@@ -166,6 +166,9 @@ var _ = Describe("User guides: Quickstart test", func() {
helper.ExpectString(ctx, "Is this correct?")
helper.SendLine(ctx, "No")

helper.ExpectString(ctx, "Select architectures")
helper.SendLine(ctx, "")

helper.ExpectString(ctx, "Select language")
helper.SendLine(ctx, ".")

0 comments on commit d2eaa8e

Please sign in to comment.