Skip to content
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

shep remove command #293

Open
warrickhill opened this issue Aug 24, 2017 · 3 comments
Open

shep remove command #293

warrickhill opened this issue Aug 24, 2017 · 3 comments

Comments

@warrickhill
Copy link

I've used shep generate endpoint /hello/{id} to create a new function. I now want to remove it, but this would required editing a few different files. It would be useful if there was a shep remove endpoint /hello/{id} command that removed the code and cleaned up api gateway and lambda on the next deploy.

@southpolesteve
Copy link
Collaborator

@warrickhill thanks for the suggestion! We'll add it to our list, but you are also welcome to make a PR yourself. Happy to help review or talk through code.

@ndastur
Copy link

ndastur commented Apr 2, 2018

Hi @southpolesteve as a start can you point me to the bits of code that might need changing and which files are modified by generate endpoint. I think this would be really useful and could try to make a PR

@southpolesteve
Copy link
Collaborator

I think generate endpoint calls generate function under the hood. So you would probably need to "undo" what is happening in these two files:

https://github.com/bustle/shep/blob/master/src/generate-function/index.js
https://github.com/bustle/shep/blob/master/src/generate-endpoint/index.js

To add a command, you should make a folder for it at src/{$command} (this is where the logic lives) and also add it to src/commands (this is where the CLI options live and what documentation is generated from)

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

3 participants