Skip to content
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

CLI: create run command #74

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

asimpleidea
Copy link
Member

@asimpleidea asimpleidea commented Aug 3, 2022

This commit creates the foundations of the new CLI, introducing the root command and the run command.
This latter one will be used to to run the program and will have many sub-commands, which will be added in next commits.

NOTE: this new CLI is not enabled yet, and it will be once all the other sub-commands will be introduced as well.

TODOs:

  • Unit tests (?)
  • Parse and validate operator options
  • Create a Run function that will run all controllers regardless of the service registry
  • Added to main (may be done on a different PR)

Other TODOs coming as development continues...

@asimpleidea asimpleidea added the enhancement New feature or request label Aug 3, 2022
@asimpleidea asimpleidea requested review from ljakab and arnatal August 3, 2022 12:26
@asimpleidea asimpleidea self-assigned this Aug 3, 2022
@asimpleidea asimpleidea force-pushed the refactor/create-cli branch 7 times, most recently from e5ec0d4 to f270eb3 Compare August 4, 2022 14:11
@asimpleidea asimpleidea marked this pull request as draft August 5, 2022 09:05
@asimpleidea asimpleidea force-pushed the refactor/create-cli branch from f270eb3 to 1f4929b Compare August 5, 2022 13:00
@asimpleidea asimpleidea mentioned this pull request Aug 5, 2022
5 tasks
This was referenced Aug 17, 2022
@asimpleidea asimpleidea force-pushed the refactor/create-cli branch 3 times, most recently from a41fbc8 to a30f042 Compare August 24, 2022 08:18
@asimpleidea asimpleidea force-pushed the refactor/create-cli branch 2 times, most recently from 17f8b58 to e62998d Compare September 1, 2022 13:26
@asimpleidea asimpleidea marked this pull request as ready for review September 5, 2022 08:50
This commit creates the foundations of the new CLI, introducing the
root command and the `run` command. This latter one will be used to
to run the program and will have many sub-commands, which will be added
in next commits.

Signed-off-by: Elis Lulja <[email protected]>
The `run` function executes the program as it used to, but is now
oblivious of the service registry you choose.

Signed-off-by: Elis Lulja <[email protected]>
This commit moves code to get files from a path or a configmap/secret
to separate functions or utility functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant