Majic Projects
Scripts
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png Scripts / Closed Feature request SCR-4 Implement functions for showing coloured info, success, warning, and error messages in shell script template
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Feature request
  • Category
    Not determined
  • Targetted for
    Not determined
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
  • Time spent
    No time spent
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
Currently all messages in scripts based on the shell script template are using plain '''echo''' calls. It would be useful to implement a couple of wrapper functions that would print different types of messages with different colors/templates:

* info
* success
* warning
* error

In general, the output would look something like:

* [INFO] Message
* [SUCCESS] Success
* [WARN] Warning
* [ERROR] Error

The tags would be bolded and coloured. Additionally, if the script is being piped somewhere, the colour sequences should not be printed out (so you can normally grep etc), unless a special flag is passed for this purpose.
Todos (0 / 0)
There are no comments