This repository was archived by the owner on Sep 9, 2020. It is now read-only.
[WIP] New status run modes #613
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTE: This is just an experiment to discuss about the behavior of status and it's running modes.
This PR adds the following modes to
status
command:-unused
- show unused dependencies-missing
- show missing dependencies-old
- show out-of-date dependenciesThere are a lot of repeated code in this PR in
status.go
file. They would be refactored once we discuss and decide how we want things to be in status.Following are the output of status with the new modes. Need feedback on how can they be improved and their proper implementation.
-unused
When there are unused dependencies:
When there are no unused dependencies:
-missing
When there are missing dependencies:
When there are no missing dependencies:
-old
When there are out-of-date dependencies:
This really needs a better table view output.
When all the dependencies are up-to-date:
This mode considers transitive dependencies too. Should this update availability check be only for direct dependencies or for all the dependencies?
Q:
-modified
is another mode that can be implemented to show what changed. But I'm not sure what are the things that should be considered for modified. Some inputs would be great.