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

[cli] console command #853

Merged
merged 1 commit into from
Aug 24, 2018
Merged

[cli] console command #853

merged 1 commit into from
Aug 24, 2018

Conversation

mikz
Copy link
Contributor

@mikz mikz commented Aug 23, 2018

start apicast console and optionally execute a file

$ bin/apicast console
[1] ngx(timer)>
Usage: bin/apicast console [-h] [<file>]

Start console

Arguments:
   file                  file to execute

Options:
   -h, --help            Show this help message and exit.

@mikz mikz requested a review from a team as a code owner August 23, 2018 13:59
return setmetatable({ parser = parser, cmd = cmd }, mt)
end

function mt:__call(options)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused argument 'self'

@mikz mikz force-pushed the apicast-console branch from 7c96dc9 to 49eeaf9 Compare August 23, 2018 14:00
start apicast console and optionally execute a file
@mikz mikz force-pushed the apicast-console branch from 49eeaf9 to 46ae209 Compare August 23, 2018 14:05
@davidor
Copy link
Contributor

davidor commented Aug 23, 2018

What do you plan to use this for?

@mikz
Copy link
Contributor Author

mikz commented Aug 23, 2018

@davidor I used it to play in the REPL to do various things when implementing the JWK. Also having a local script and executing it to verify it works / does not crash.

@mikz mikz merged commit 71caa13 into master Aug 24, 2018
@mikz mikz deleted the apicast-console branch August 24, 2018 06:26
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

Successfully merging this pull request may close these issues.

2 participants