Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Verbose flag #330

Merged

Conversation

viniciussousazup
Copy link
Contributor

- What I did

Added the possibility to execute a formula passing a --verbose flag to indicate that formula should show more detailed log messages.

This verbose flag only adds a Boolean environment variable that can be retrieved during the execution of the formula, so the details of the messages are in the domain of whoever is writing the formula.

- How to verify it

  • Run a formula with --verbose as flag
  • In the formula script, retrieve the environment variable VERBOSE_MODE
  • If the flag has been entered, the value will be "true" or "false"

Example:
rit docker generate compose --verbose

- Description for the changelog

Adding --verbose flag

@viniciussousazup viniciussousazup changed the title Feature/verbose flag Verbose flag Jul 30, 2020
@viniciussousazup viniciussousazup self-assigned this Jul 30, 2020
@viniciussousazup viniciussousazup added 2.0.0 ✨ feature Suggest a new feature or enhancement to the Ritchie project labels Jul 30, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2020

Codecov Report

Merging #330 into ritchie-2.0.0 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##           ritchie-2.0.0     #330   +/-   ##
==============================================
  Coverage          64.97%   64.97%           
==============================================
  Files                 78       78           
  Lines               2561     2561           
==============================================
  Hits                1664     1664           
  Misses               734      734           
  Partials             163      163           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc78190...d1acc17. Read the comment docs.

@viniciussousazup viniciussousazup added the 🚧 WIP Work in Progress label Jul 31, 2020
@viniciussousazup viniciussousazup removed the 🚧 WIP Work in Progress label Jul 31, 2020
@viniciussousazup viniciussousazup merged commit b14729a into ZupIT:ritchie-2.0.0 Jul 31, 2020
@viniciussousazup viniciussousazup deleted the feature/verbose-flag branch July 31, 2020 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
✨ feature Suggest a new feature or enhancement to the Ritchie project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants