This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Reduce CLI code to only handle user inputs (like flags and arguments) and output #603
Labels
size/m
Issues which likely require up to a couple of work days
technical-debt
Technical debt-related issues
Comments
+1 for treating |
surajssd
added
size/xl
Issues which likely require multiple work weeks
size/l
Issues which likely require many work days (but not weeks)
and removed
size/xl
Issues which likely require multiple work weeks
proposed/next-sprint
Issues proposed for next sprint
labels
Sep 23, 2020
This was referenced Sep 25, 2020
iaguis
added
size/xl
Issues which likely require multiple work weeks
and removed
size/l
Issues which likely require many work days (but not weeks)
labels
Oct 14, 2020
invidian
added a commit
that referenced
this issue
Oct 19, 2020
This draws clear distinction between the CLI code sitting in cli/cmd package right now and Lokomotive "core" logic. cli/cmd/cluster package still contains some UI parts, like user input confirmation or output printed directly to standard output, which should also be addressed in the future. Refs #603 Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
invidian
added a commit
that referenced
this issue
Oct 19, 2020
This draws clear distinction between the CLI code sitting in cli/cmd package right now and Lokomotive "core" logic. cli/cmd/cluster package still contains some UI parts, like user input confirmation or output printed directly to standard output, which should also be addressed in the future. Refs #603 Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
invidian
added a commit
that referenced
this issue
Oct 21, 2020
This draws clear distinction between the CLI code sitting in cli/cmd package right now and Lokomotive "core" logic. cli/cmd/cluster package still contains some UI parts, like user input confirmation or output printed directly to standard output, which should also be addressed in the future. Refs #603 Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
invidian
added a commit
that referenced
this issue
Oct 22, 2020
This draws clear distinction between the CLI code sitting in cli/cmd package right now and Lokomotive "core" logic. cli/cmd/cluster package still contains some UI parts, like user input confirmation or output printed directly to standard output, which should also be addressed in the future. Refs #603 Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
invidian
added a commit
that referenced
this issue
Oct 28, 2020
This draws clear distinction between the CLI code sitting in cli/cmd package right now and Lokomotive "core" logic. cli/cmd/cluster package still contains some UI parts, like user input confirmation or output printed directly to standard output, which should also be addressed in the future. Refs #603 Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
invidian
added a commit
that referenced
this issue
Oct 28, 2020
This draws clear distinction between the CLI code sitting in cli/cmd package right now and Lokomotive "core" logic. cli/cmd/cluster package still contains some UI parts, like user input confirmation or output printed directly to standard output, which should also be addressed in the future. Refs #603 Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
johananl
added
size/m
Issues which likely require up to a couple of work days
and removed
size/xl
Issues which likely require multiple work weeks
labels
Nov 2, 2020
PRs #1013 #1015 #1018 and #1098 has been merged, which improved the shape of
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
size/m
Issues which likely require up to a couple of work days
technical-debt
Technical debt-related issues
Currently, our
cli/cmd
package does a lot of things like:All those functions are not tested and are difficult to test. There is also a lot of duplicated code for each subcommand.
In my opinion, we should reduce the responsibility of this package to handle:
Other code should be encapsulated into some structure with clearly defined exported API, which can easily be tested.
For example,
lokomotive/cli/cmd/health.go
Lines 46 to 111 in cc8cafa
#596 should also be taken into account while working on this.
The text was updated successfully, but these errors were encountered: