Open alextwothousand opened 3 years ago
I'd say we firstly would start with finding an ouput colouring library that is compatible with all shells (including Command Prompt, Old PS etc) because the current package we're using (Chalk) acts weird in those old terminals.
replace urfave/cli and chalk with pTerm.
Never mind, pTerm doesn't provide the functionality that urfave/cli does. But thats OK, we can just use pTerm instead of chalk-- it looks better anyway.
We can use pTerm instead of Survey I think or otherwise we can use it for colouring and that's it.
We can use pTerm instead of Survey I think or otherwise we can use it for colouring and that's it.
The power of cross collaboration :) You can give it a try in a separate branch and see if it works. IIRC pTerm would only be a replacement for chalk.
At the moment, we default to "sh" (for any non-windows OS) and "cmd" for Windows. We should look into determining what shell the current user executed sampgo cli from, then using that.