Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

introduce new packages #479

@andrei-panov

Description

@andrei-panov

Hi all,
I want to discuss a generic question about gardenctl packages.
Currently there only one global package cmd with a very global scope. What you thinking about to introduce packages like this:

subcmd\
  kubectl\
  aws\
  hermesctl\

It will increase testability, reduce scope, make refactoring simpler, will allow us to use the same packages for testing (currently we use cmd_test and can’t test non-public methods), and as a side effect will let you control our dependencies graph better in terms that gardenctl itself will depend (in the code) on hermesctl but not another way around.
I’m not sure, but I suspect Target used everywhere and everything depends on it.

In the future, it will let us reuse these submodules independently in other projects?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenNobody worked on this for 12 months (final aging stage)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions