Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Latest commit

 

History

History
111 lines (78 loc) · 3.03 KB

README.adoc

File metadata and controls

111 lines (78 loc) · 3.03 KB

kn-hello

kn hello prints out a friendly message to the user.

Description

With this plugin, you can make the world a better place. Use it to greet your users with a friendly "Hello"

Also, and more critical, this plugin serves as a blueprint for other plugins. So copy over the content of this directory into your new plugin and adapt it you your code. Including this README.

Usage

A longer description of this fantastic plugin that can go over several lines.

Usage:
  kn hello [command]

Available Commands:
  help        Help about any command
  print       Print the argument
  version     Prints the plugin version

Flags:
  -h, --help   help for kn-hello

Use "kn-hello [command] --help" for more information about a command.

kn print

Print the argument

Usage:
  kn hello print [flags]

Flags:
  -h, --help   help for print

kn version

This command prints out the version of this plugin and all extra information which might help, for example when creating bug reports.

Prints the plugin version

Usage:
  kn hello version [flags]

Flags:
  -h, --help   help for version

Examples

Print out a beautiful message

Often you want to greet your users with a charming message. In this case, you can use the kn hello print command. The only required argument here is the name of the person to greet.

Example 1. Example Greeting
$ kn hello print Carl

Hello, Carl

Print out the version of this plugin

The kn hello version command helps you to identify the version of this plugin.

Example 2. Example version output
$ kn hello version

Version:      v20200402-local-a099aaf-dirty
Build Date:   2020-04-02 18:16:20
Git Revision: a099aaf

As you can see it prints out the version (or a generated timestamp when this plugin is built from a non-released commit), the date when the plugin has been built and the actual Git revision.