ohce kata at GuideSmiths for Xmas 2019
npm install -g ohce-power
The command to trigger the CLI is called ohce
or ohce-power
.
ohce <name> [-c, --color] [--help] [--version]
where:
<name>
is a required argument to tell the CLI your name.-c, --color
is an option to configure the CLI to print messages with colours.--help
is an option that shows help information--version
is an option that shows the version of CLIohce is a console application that echoes the reverse of what you input through the console.
When you start oche, it greets you differently depending on the current time, but only in Spanish:
¡Buenas noches <name>!
¡Buenos días <name>!
¡Buenas tardes <name>!
When you introduce a palindrome, ohce likes it and after reverse-echoing it, it adds ¡Bonita palabra!
.
ohce knows when to stop, you just have to write Stop!
and it'll answer Adios <name>
and end.
If you don't want to continue using our CLI, just uninstall it running:
npm uninstall -g ohce-power
git clone https://github.com/inigomarquinez/kata-ohce.git
cd kata-ohce
npm run test