-
Notifications
You must be signed in to change notification settings - Fork 54
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
Initial version, closes #2, #4, #5, #6 #12
Conversation
|
||
type clientCmd struct { | ||
Address string `long:"address" description:"server address to connect to" default:"localhost:9432"` | ||
Standalone []bool `long:"standalone" description:"run standalone, without server"` |
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.
Should this be bool
instead of []bool
?
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.
Nope, go-flags mandates []bool
, which supports detecting things such as -vvvvv
.
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.
👍
driver.go
Outdated
"github.com/bblfsh/sdk/protocol/driver" | ||
) | ||
|
||
type Driver interface { |
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.
Document this interface.
Standalone []bool `long:"standalone" description:"run standalone, without server"` | ||
RuntimePath string `long:"runtime-path" description:"runtime path for standalone mode" default:"/tmp/bblfsh-runtime"` | ||
ImageRef string `long:"image" value-name:"image-ref" description:"image reference to use (e.g. docker://bblfsh/python-driver:latest)"` | ||
Language string `long:"language" description:"language of the input" default:"auto"` |
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.
This option doesn't seem supported yet
* includes CLI for server and client * client can run in standalone mode (--standalone) * handling of images is still very basic * correct handling of concurrent request is still not done
Codecov Report
@@ Coverage Diff @@
## master #12 +/- ##
==========================================
- Coverage 59.28% 47.09% -12.2%
==========================================
Files 7 12 +5
Lines 393 516 +123
==========================================
+ Hits 233 243 +10
- Misses 133 243 +110
- Partials 27 30 +3
Continue to review full report at Codecov.
|
No description provided.