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 Rust template to match hello-world formula #250

Closed senoja closed 4 years ago

senoja commented 4 years ago

Closes #187

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

Pull Request

What I did

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

Screen Shot 2020-10-01 at 2 35 07 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, with the rust toolchain:

cd templates/create_formula/languages/rust/
export INPUT_TEXT=senoja
export INPUT_LIST=toils
export INPUT_BOOLEAN=false
export INPUT_PASSWORD=none

cargo run 

You might laugh but this is what I came up with for a final validation using the cli:

rit delete repo # remove commons and re-add commons from my fork
echo '{"provider":"Github", "name":"commons", "version":"exp", "url":"https://github.com/senoja/ritchie-formulas-demo", "token": null, "priority":0}' | rit add repo --stdin
rit create formula # selecting the rust option and "rit senoja rust update"
rit senoja rust update

What kind of change does this PR make

Description for the changelog

GuillaumeFalourd commented 4 years ago

Thank you for contributing @senoja 👍

We are still working on the form for the Zup IT Challenge (https://insights.zup.com.br/hacktoberfest) and we'll send it to you as soon as it will be validated.