Skip to content

Refactor: app.go into separate packages/files #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexellis opened this issue Aug 21, 2017 · 1 comment
Closed

Refactor: app.go into separate packages/files #43

alexellis opened this issue Aug 21, 2017 · 1 comment

Comments

@alexellis
Copy link
Member

There was a suggestion by @rgee0 to refactor into separate files. I think we have to do this now due to the upcoming cobra CLI changes.

@johnmccabe
Copy link
Contributor

yep thats how you structure a client with cobra

commands/faas.go # the root command `faas-cli` all verbs are attached to this
commands/deploy.go
commands/build.go
commands/delete.go
app.go # just calls commands.Execute()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants