-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish automating docs for odo init command reference
Signed-off-by: Parthvi Vala <pvala@redhat.com>
- Loading branch information
1 parent
67ef3b9
commit 3913bde
Showing
14 changed files
with
393 additions
and
124 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...bsite/docs/command-reference/docs-mdx/init/devfile_from_any_registry_output.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
```console | ||
$ odo init --devfile nodejs-react --name my-nr-app | ||
__ | ||
/ \__ Initializing a new component | ||
\__/ \ | ||
/ \__/ odo version: v3.4.0 | ||
\__/ | ||
|
||
✓ Downloading devfile "nodejs-react" [3s] | ||
|
||
Your new component 'my-nr-app' is ready in the current directory. | ||
To start editing your component, use 'odo dev' and open this folder in your favorite IDE. | ||
Changes will be directly reflected on the cluster. | ||
|
||
``` |
17 changes: 17 additions & 0 deletions
17
.../docs/command-reference/docs-mdx/init/devfile_from_specific_registry_output.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
```console | ||
$ odo init --name my-spring-app --devfile java-springboot --devfile-registry DefaultDevfileRegistry --starter springbootproject | ||
|
||
__ | ||
/ \__ Initializing a new component | ||
\__/ \ | ||
/ \__/ odo version: v3.4.0 | ||
\__/ | ||
|
||
✓ Downloading devfile "java-springboot" from registry "DefaultDevfileRegistry" [4s] | ||
✓ Downloading starter project "springbootproject" [874ms] | ||
|
||
Your new component 'my-spring-app' is ready in the current directory. | ||
To start editing your component, use 'odo dev' and open this folder in your favorite IDE. | ||
Changes will be directly reflected on the cluster. | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
docs/website/docs/command-reference/docs-mdx/init/empty_directory_output.mdx
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
...mand-reference/docs-mdx/init/interactive_mode_directory_with_sources_output.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
```console | ||
$ odo init | ||
__ | ||
/ \__ Initializing a new component | ||
\__/ \ Files: Source code detected, a Devfile will be determined based upon source code autodetection | ||
/ \__/ odo version: v3.4.0 | ||
\__/ | ||
|
||
Interactive mode enabled, please answer the following questions: | ||
Based on the files in the current directory odo detected | ||
Language: JavaScript | ||
Project type: Node.js | ||
Application ports: 8080 | ||
The devfile "nodejs:2.1.1" from the registry "DefaultDevfileRegistry" will be downloaded. | ||
? Is this correct? Yes | ||
✓ Downloading devfile "nodejs:2.1.1" from registry "DefaultDevfileRegistry" [3s] | ||
|
||
↪ Container Configuration "runtime": | ||
OPEN PORTS: | ||
- 8080 | ||
- 5858 | ||
ENVIRONMENT VARIABLES: | ||
- DEBUG_PORT = 5858 | ||
|
||
? Select container for which you want to change configuration? NONE - configuration is correct | ||
? Enter component name: node-echo | ||
|
||
You can automate this command by executing: | ||
odo init --name node-echo --devfile nodejs --devfile-registry DefaultDevfileRegistry --devfile-version 2.1.1 | ||
|
||
Your new component 'node-echo' is ready in the current directory. | ||
To start editing your component, use 'odo dev' and open this folder in your favorite IDE. | ||
Changes will be directly reflected on the cluster. | ||
``` |
33 changes: 33 additions & 0 deletions
33
...ocs/command-reference/docs-mdx/init/interactive_mode_empty_directory_output.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
```console | ||
$ odo init | ||
__ | ||
/ \__ Initializing a new component | ||
\__/ \ Files: No source code detected, a starter project will be created in the current directory | ||
/ \__/ odo version: v3.4.0 | ||
\__/ | ||
|
||
Interactive mode enabled, please answer the following questions: | ||
? Select language: Java | ||
? Select project type: Maven Java (java-maven, registry: DefaultDevfileRegistry) | ||
✓ Downloading devfile "java-maven" from registry "DefaultDevfileRegistry" [4s] | ||
|
||
↪ Container Configuration "tools": | ||
OPEN PORTS: | ||
- 8080 | ||
- 5858 | ||
ENVIRONMENT VARIABLES: | ||
- DEBUG_PORT = 5858 | ||
|
||
? Select container for which you want to change configuration? NONE - configuration is correct | ||
? Which starter project do you want to use? springbootproject | ||
? Enter component name: my-java-maven-app | ||
✓ Downloading starter project "springbootproject" [1s] | ||
|
||
You can automate this command by executing: | ||
odo init --name my-java-maven-app --devfile java-maven --devfile-registry DefaultDevfileRegistry --starter springbootproject | ||
|
||
Your new component 'my-java-maven-app' is ready in the current directory. | ||
To start editing your component, use 'odo dev' and open this folder in your favorite IDE. | ||
Changes will be directly reflected on the cluster. | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
docs/website/docs/command-reference/docs-mdx/init/registry_list_output.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
```console | ||
$ odo registry --devfile nodejs-react | ||
NAME REGISTRY DESCRIPTION VERSIONS | ||
nodejs-react StagingRegistry React is a free and open-source front-en... 2.0.2 | ||
nodejs-react DefaultDevfileRegistry React is a free and open-source front-en... 2.0.2 | ||
|
||
``` |
10 changes: 10 additions & 0 deletions
10
docs/website/docs/command-reference/docs-mdx/init/registry_output.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
```console | ||
$ odo preference view | ||
[...] | ||
|
||
Devfile registries: | ||
NAME URL SECURE | ||
StagingRegistry https://registry.stage.devfile.io No | ||
DefaultDevfileRegistry https://registry.devfile.io No | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.