You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem description (if applicable)
The cmd/ directory should be strictly for CLI implementation, logic, and validation. Currently, some commands have some of their execution logic written in the same file as the command declaration in the cmd/ directory. Having the execution logic mixed with the command implementation can cause confusion for developers and possible namespace collisions. Having all logic within the pkg/ directory will also make it easier to use airshipctl as a library. The following files have mixed code:
cmd/config/get_authinfo.go
cmd/config/get_cluster.go
cmd/config/get_context.go
cmd/config/set_authinfo.go
cmd/config/set_cluster.go
cmd/config/set_context.go
Proposed change
All execution logic should be moved from the cmd/ directory to the pkg/ directory.
The text was updated successfully, but these errors were encountered:
Problem description (if applicable)
The
cmd/
directory should be strictly for CLI implementation, logic, and validation. Currently, some commands have some of their execution logic written in the same file as the command declaration in thecmd/
directory. Having the execution logic mixed with the command implementation can cause confusion for developers and possible namespace collisions. Having all logic within thepkg/
directory will also make it easier to use airshipctl as a library. The following files have mixed code:Proposed change
All execution logic should be moved from the
cmd/
directory to thepkg/
directory.The text was updated successfully, but these errors were encountered: