Adds ASCII logo to --help / removes oc references (#5431)

<!--
Thank you for opening a PR! Here are some things you need to know before submitting:

1. Please read our developer guideline: https://github.com/redhat-developer/odo/wiki/Developer-Guidelines
2. Label this PR accordingly with the '/kind' line
3. Ensure you have written and ran the appropriate tests: https://github.com/redhat-developer/odo/wiki/Writing-and-running-tests
4. Read how we approve and LGTM each PR: https://github.com/redhat-developer/odo/wiki/PR-Review

Documentation:

If you are pushing a change to documentation, please read: https://github.com/redhat-developer/odo/wiki/Contributing-to-Docs
-->

**What type of PR is this:**

<!--
Add one of the following kinds:
/kind bug
/kind feature
/kind tests
/kind documentation

Feel free to use other [labels](https://github.com/redhat-developer/odo/labels) as needed. However one of the above labels must be present or the PR will not be reviewed. This instruction is for reviewers as well.
-->

/kind cleanup

**What does this PR do / why we need it:**

This PR:
- Removes the OpenShift references in the main --help page
- Adds an ASCII version of our logo which looks better on the --help
output
- Changes the link to our main website

See the output here!:
```sh
▶ odo --help | head -n 15
  __
 /  \__     odo is a CLI tool for fast iterative application development
 \__/  \    deployed immediately to your kubernetes cluster.
 /  \__/    Find more information at https://odo.dev
 \__/

Usage:
  odo [flags]
  odo [command]

Examples:
  # Creating and deploying a Node.js project
  git clone https://github.com/odo-devfiles/nodejs-ex && cd nodejs-ex
  odo create nodejs
  odo push
```

**Which issue(s) this PR fixes:**
<!--
Specifying the issue will automatically close it when this PR is merged
-->

Fixes https://github.com/redhat-developer/odo/issues/5401

**PR acceptance criteria:**

- [X] Unit test

- [X] Integration test

- [X] Documentation

**How to test changes / Special notes to the reviewer:**

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
This commit is contained in:
Charlie Drage
2022-02-03 23:07:36 -05:00
committed by GitHub
parent 070bf432c6
commit 97e211b715

View File

@@ -39,13 +39,14 @@ const OdoRecommendedName = "odo"
var (
// We do not use ktemplates.Normalize here as it messed up the newlines..
odoLong = `odo is a CLI tool for running OpenShift applications in a fast and automated manner.
Reducing the complexity of deployment, odo adds iterative development without the worry of deploying your source code.
Find more information at https://github.com/redhat-developer/odo`
odoLong = ` __
/ \__ odo is a CLI tool for fast iterative application development
\__/ \ deployed immediately to your kubernetes cluster.
/ \__/ Find more information at https://odo.dev
\__/`
odoExample = ktemplates.Examples(` # Creating and deploying a Node.js project
git clone https://github.com/openshift/nodejs-ex && cd nodejs-ex
git clone https://github.com/odo-devfiles/nodejs-ex && cd nodejs-ex
%[1]s create nodejs
%[1]s push
@@ -87,11 +88,12 @@ Use "{{.CommandPath}} [command] --help" for more information about a command.{{e
Get started by creating a new application:
git clone https://github.com/openshift/nodejs-ex && cd nodejs-ex
git clone https://github.com/odo-devfiles/nodejs-ex && cd nodejs-ex
odo create nodejs
odo push
Your nodejs application has now been deployed. odo has pushed the source code, built the application and deployed it on OpenShift.
Your Node.JS application has now been deployed to Kubernetes. odo has pushed the source code, built the application and deployed it.
You can now edit your code in real time and watch as odo automatically deploys your application.
odo watch