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

Initial version, closes #2, #4, #5, #6 #12

Merged
merged 4 commits into from
May 30, 2017
Merged

Initial version, closes #2, #4, #5, #6 #12

merged 4 commits into from
May 30, 2017

Conversation

smola
Copy link
Member

@smola smola commented May 26, 2017

No description provided.


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"`

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?

Copy link
Member Author

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.

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 {

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"`
Copy link
Contributor

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

@smola smola mentioned this pull request May 29, 2017
@smola smola changed the title Initial version Initial version, closes #2, #4, #5, #6 May 29, 2017
smola added 3 commits May 30, 2017 13:59
* 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
Copy link

codecov bot commented May 30, 2017

Codecov Report

Merging #12 into master will decrease coverage by 12.19%.
The diff coverage is 9.48%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
utils/unpack.go 0% <0%> (ø) ⬆️
server.go 0% <0%> (ø)
common.go 0% <0%> (ø)
driver.go 0% <0%> (ø)
runtime/parse_image_name.go 50% <50%> (ø)
runtime/image.go 58.97% <66.66%> (-1.03%) ⬇️
language.go 77.77% <77.77%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b11cba1...1be3e2c. Read the comment docs.

@smola smola merged commit f03d509 into bblfsh:master May 30, 2017
@smola smola deleted the initial-version branch May 30, 2017 12:11
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.

None yet

3 participants