New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create verbose argument for all commands #39
Comments
For which command would you add it @santos88 ? |
Following up in this issue, would you be interested in getting a verbose output from any of the commands? Which information would you like to get? |
reopening this issue. It would be very good to add a verbose mode to help track down where failures happen.
This is not a fully inclusive list, I'm sure there are other's we can introduce here. |
+1 on this, I am trying to debug whether the |
Thanks for the suggestions. I agree the flag should be supported to make the debugging of Tuist's commands easier. Would you be interested in contributing yourself to the project by adding support for that flag to the generate command @parse? If so, I can point you to some areas of the codebase that would be impacted by that work. |
I am sorry to say I don't have the time at the moment. My ambition is to get involved this upcoming spring. |
Sure! No worries. I'll keep the issue in the backlog to not forget about it. |
So I've restarted the Logging work, so far I am going to propose that we use To use this we will need to consolidate all of our logging, this means refactoring all of the current methods of printing to console and colourising the logs. Thankfully Tuist has exposed all of this through Each module inside of Tuist will define the label specific for that subsystem, the property will be internal and only accessible from withinside that module - for testing we can write our own LogHandler and bootstrap it against the LoggingSystem. let logger = Logger(label: "io.tuist.support") At the call-site when we want to use this the API will look fairly similar to what we are used to logger.warning("\(deprecation) will be deprecated in the next major release. Use \(suggestion) instead.") I will define two new logging types,
Once we have this mechanism in place, we can then look at exposing a command line option for raising or lowering the logging level for each of the logging types. @pepibumur How does this sound? |
I have created a work-in-progress branch so that we can form a detailed discussion about the direction of this work: |
Would be a good point add a verbose argument (--verbose || -v)
The text was updated successfully, but these errors were encountered: