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
t2 restart <file> --type=flash|ram, defaults to "ram". Fixes gh-264 #265
Conversation
default: 'ram', | ||
help: 'Specify where in memory the script is located: `--type=flash` (push) or `--type=ram` (run)' | ||
}) | ||
.help('Restart a script in RAM or Flash memory. (Does not rebundle)'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might add 'Restart a previously deploy script in RAM...'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in next commit
@rwaldron It seems like you shouldn't be specifying an entry point. To me, it's most intuitive to just run
or
When would you want to restart a script that wasn't the one that you just deployed? |
|
There is no memory from one cli call to the next, so the name of the file that the user wants to restart is not concretely knowable. There could be several files in the root of a project directory that get deployed on either a |
Love it! Tried it out and it works great. Feel free to merge! |
t2 restart <file> --type=flash|ram, defaults to "ram". Fixes gh-264
No description provided.