Migrate the cli into the main repo / structure components #3

Open
opened 2021-11-20 11:21:16 +00:00 by ungleich-gitea · 0 comments
  • Allow outputting multiple packages from the main uncloud repo
    ** either multiple setup.py or a smart setup.py

I personally think we should implement the following logic in scripts/uncloud:

for component in [ "api", ..., "cli" ]:
  try importing it
  if it works -> add it to the argparser
     arg_parser[component] = uncloud.component.parser()

  if it doesn't work: skip it

This way the scripts/uncloud file can be very generic.
argparsers might have to be shifted INSIDE the components to be fully generic.

* Allow outputting multiple packages from the main uncloud repo ** either multiple setup.py or a smart setup.py I personally think we should implement the following logic in scripts/uncloud: ``` for component in [ "api", ..., "cli" ]: try importing it if it works -> add it to the argparser arg_parser[component] = uncloud.component.parser() if it doesn't work: skip it ``` This way the scripts/uncloud file can be very generic. argparsers might have to be shifted INSIDE the components to be fully generic.
ahmedbilal was assigned by ungleich-gitea 2021-11-20 11:21:16 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: uncloud/uncloud-cli#3
No description provided.