prismatic-io / prism

Prismatic's CLI tool for managing prismatic.io resources from the command line
MIT License
20 stars 3 forks source link

Component signature pretty output using Oclif #91

Closed jasoncomes closed 5 months ago

jasoncomes commented 5 months ago

Issue: When using process.stdout.write this includes % at the end of the output indicating the end of program. However, this could be confusing to the user if they need to manually generate a component signature.

# dummy example
process.stdout.write("Hello World"); // Hello World%
# live example
❯ prism components:signature
34593f3f1921a1ce32b2ece60f5b1bea1333acf9%  

Solution: Use oclifs way of logging output, however we'll need to account for the automatic line break it adds in spectral when generating the component manifest.