ZupIT / ritchie-formulas

This repository contains the community formulas that can be executed through Ritchie CLI once imported. This tool is an open source product that allows you to create, store and share any kind of automations, executing them through command lines, to run operations or start workflows ⚙️ 🖥 💡
https://ritchiecli.io
Apache License 2.0
105 stars 72 forks source link

Update Shell template to match hello-world formula #263

Closed senoja closed 4 years ago

senoja commented 4 years ago

Closes #259

Signed-off-by: Anthony Jones anthony@beforeman.co

Pull Request

What I did

Updated the Shell template to show the four ritchie input methods and match the language and colors to the hello-world formula.

Screen Shot 2020-10-04 at 12 18 10 PM

How I did it

Used the hello-world formula as a guideline.

How to verify it

Direct comparison to the hello-world command: rit demo hello-world.

From the fork, from a shell:

export INPUT_TEXT=senoja
export INPUT_LIST=toils
export INPUT_BOOLEAN=false
export INPUT_PASSWORD=none
templates/create_formula/languages/shell/src/main.sh

What kind of change does this PR make

Description for the changelog

GuillaumeFalourd commented 4 years ago

Hi @senoja , thank you for contributing 👍

There is a conflict with the templates/create_formula/languages/shell/config.json file. Could you resolve it before we merge your contribution please ? 😄

I love the way you used color to print outputs 👍

senoja commented 4 years ago

Thanks @GuillaumeFalourd - added the required field in the same manner as the Go template.