enhance `gsctl` command by implementing sub-command `install-deps`
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 468
- Avg merge
- 29m
- Merged PRs (30d)
- 1
Description
Task as titled. It is migrating, rather than implementing.
Background: we are refactoring the existing command-line utility `gs` written in bash (with framework `bashly`), to Python-based `gsctl` with package `click`. A bootstrap is built [here](https://github.com/alibaba/GraphScope/tree/main/python/graphscope/gsctl/gsctl.py), some subcommands are still missing.
More specifically, for this task, we have it in `gs` before, the logic for `install-deps` are implemented in a bash here:
https://github.com/GraphScope/cli/blob/main/src/install_deps_command.sh
(Ask Wang to grant if you do not have the authorization.)
In this task, please DO NOT reimplement it, but reuse this bash with minor revision:
1. fulfill the subcommand `install-deps` in [here](https://github.com/alibaba/GraphScope/blob/a18836d5ca89143ff9fee20851daaa258c7a113f/python/graphscope/gsctl/gsctl.py#L59), and migrate the existing options [here](https://github.com/GraphScope/cli/blob/main/src/bashly.yml) (L119-L168)
2. put `install_deps_command.sh` to https://github.com/alibaba/GraphScope/tree/main/python/graphscope/gsctl/scripts
3. parse and process the options with `click` in `gsctl.py` , (refer to sub-command `make`), and invoke the `install_deps_command.sh`, please be aware that some minor revisions may in need in the .sh to process the parsing args.
4. make it works.
Contributor guide
Assessment
This issue has not been assessed yet.