Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Massive Refactor of Kosh's internals #66

Merged
merged 9 commits into from
Oct 29, 2020
Merged

Massive Refactor of Kosh's internals #66

merged 9 commits into from
Oct 29, 2020

Conversation

perigrin
Copy link
Contributor

When kosh was first refactored from conch-shell it was the only go-based application talking to the API. So it made no sense to continue to maintain a separate package to wrap the upstream API. However going forward there will be more go based conch applications so having the conch library return is important.

This PR refactors kosh back into having an separate packages. It reworks the error handling to no longer use the panic/recover system, and it extracts the template and table rendering logic out into hopefully re-usable components as well.

User facing changes should be minimal. Some places where kosh was pulling a lot of information for output have been streamlined (temporarily) until we have better feedback on what information we need from those commands. Also some of the command shortcuts from conch-shell have been restored because finger memory is a thing.

@perigrin perigrin merged commit 59bd64b into master Oct 29, 2020
@perigrin perigrin deleted the chris/refactor branch October 29, 2020 19:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant