shellfire-dev / shellfire

A repository of namespaced, composable shell (bash, sh and dash) function libraries. Takes aware the pain of shell scripting, making it robust and reusable. Includes secure curl usage, JSON, XML and Debian control file parsers, dependency documentation via attributes, and more. Batteries ARE included.
https://github.com/shellfire-dev/shellfire
Other
1.2k stars 50 forks source link

Functions for prompt/message #13

Open Anachron opened 9 years ago

Anachron commented 9 years ago

First off, I like this framework! Secondly, I am missing functions like this: https://github.com/Anachron/os-install/blob/master/new/helpers/shell.sh#L51 https://github.com/Anachron/os-install/blob/master/new/helpers/shell.sh#L16

Is it possible to make some functions for this too?

raphaelcohn commented 9 years ago

Yes, it is. However, there would be some overlap with current functionality to tease out (eg terminal colouring). And the bashisms (eg [[) would need to be changed. Would it work best as another submodule, rather than being in core, do you think?

Anachron commented 9 years ago

@raphaelcohn sure! Make it as sub-module, makes the most sense. It's always good to have function for message, prompts and such things.

raphaelcohn commented 9 years ago

Fancy having a go?