Skip to content

Use command line args in examples.#20

Merged
Hoverbear merged 21 commits intotikv:masterfrom
sticnarf:use-clap-for-example
Jan 14, 2019
Merged

Use command line args in examples.#20
Hoverbear merged 21 commits intotikv:masterfrom
sticnarf:use-clap-for-example

Conversation

@sticnarf
Copy link
Copy Markdown
Collaborator

I am happy to help with #16.

The clap work is put in a separate function to avoid messing up the main.

Not returning a Config directly from parse_args is meant to keep the code of creating a Config in view.

sunxiaoguang and others added 18 commits January 11, 2019 11:32
Note: raw::Client::batch_scan is not implemented yet.

Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Ana Hobden <operator@hoverbear.org>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
@Hoverbear
Copy link
Copy Markdown
Contributor

@sticnarf Looks great! Let's hold this until we can merge #14

@sticnarf
Copy link
Copy Markdown
Collaborator Author

@Hoverbear This pr intends to be merged into sun/raw_kv_initial_version, so I think it can be merged prior to that.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Comment thread examples/transaction.rs Outdated
Comment thread examples/raw.rs Outdated
Comment thread examples/raw.rs Outdated
Comment thread examples/common/mod.rs Outdated
Comment thread examples/raw.rs Outdated
Comment thread examples/raw.rs Outdated
@siddontang
Copy link
Copy Markdown
Contributor

PTAL @Hoverbear

@siddontang
Copy link
Copy Markdown
Contributor

PTAL @sunxiaoguang

@sticnarf sticnarf force-pushed the use-clap-for-example branch from a6ee50c to 9f5ec20 Compare January 14, 2019 03:42
@sticnarf sticnarf changed the base branch from sun/raw_kv_initial_version to master January 14, 2019 03:43
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
@sticnarf sticnarf force-pushed the use-clap-for-example branch from 9f5ec20 to 10e3f6a Compare January 14, 2019 03:55
@sticnarf
Copy link
Copy Markdown
Collaborator Author

Latest changes are merged into this branch. Now I change the base branch of this PR to master.

@Hoverbear
Copy link
Copy Markdown
Contributor

This LGTM. Merging now, red build jobs are due to misconfigured CI (we configured it during a brownout 🙄 My bad.) The lint is existing so not related to this PR.

@Hoverbear Hoverbear merged commit c33bc13 into tikv:master Jan 14, 2019
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.

4 participants