rancher / charts-build-scripts

Apache License 2.0
9 stars 32 forks source link

Refactor main to create mage targets #80

Closed dbason closed 5 months ago

dbason commented 2 years ago

This pull request refactors the CLI functions into exported functions that can be used as mage targets. The original functions wrap the new ones with a CLI context.

The validate function has been split into 3 separate functions to make it easier to use the remote or local options in mage.

kralicky commented 2 years ago

I believe the exported functions will need to be moved to a different package, since package main can't be imported.

aiyengar2 commented 2 years ago

Why do we need the functions to be exposed as mage targets?

adamkpickering commented 5 months ago

Closing since this PR hasn't seen any action for 2 years. We can reopen it if needed.