Majic Projects
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
feature_request_small.png
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
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
icon_info.png 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
Commits (1)
 branko (branko)
Jul 19, 2013 - 15:39
SCR-4SCR-4 Added support to the Bash script template for coloured message output using utility functions.
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.
Comments ()
There are no comments
History