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

Add documentation to the cli within the helper mode. #225

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

haixuanTao
Copy link
Collaborator

This PR add documentations to the cli. The cli will now show the following documentation when prompted without arguments:

(dora3.10) ~/D/C/dora ❯❯❯ dora-cli                                                         (dora3.10) cli-documentation ✭ ✱
dora-rs cli client

Usage: dora-cli <COMMAND>

Commands:
  check    Check if the coordinator and the daemon is running
  graph    Generate a visualization of the given graph using mermaid.js. Use --open to open browser
  build    Run build commands provided in the given dataflow
  new      Generate a new project, node or operator. Choose the language between Rust, Python, C or C++
  up       Spawn a coordinator and a daemon
  destroy  Destroy running coordinator and daemon. If some dataflows are still running, they will be stopped first
  start    Start the given dataflow path. Attach a name to the running dataflow by using --name
  stop     Stop the given dataflow UUID. If no id is provided, you will be able to choose between the running dataflows
  list     List running dataflows
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help information
  -V, --version  Print version information

This commit add documentation to the cli. The cli will now show the
following documentation when prompted without arguments:

```bash
(dora3.10) ~/D/C/dora ❯❯❯ dora-cli                                                         (dora3.10) cli-documentation ✭ ✱
dora-rs cli client

Usage: dora-cli <COMMAND>

Commands:
  check    Check if the coordinator and the daemon is running
  graph    Generate a visualization of the given graph using mermaid.js. Use --open to open browser
  build    Run build commands provided in the given dataflow
  new      Generate a new project, node or operator. Choose the language between Rust, Python, C or C++
  up       Spawn a coordinator and a daemon
  destroy  Destroy running coordinator and daemon. If some dataflows are still running, they will be stopped first
  start    Start the given dataflow path. Attach a name to the running dataflow by using --name
  stop     Stop the given dataflow UUID. If no id is provided, you will be able to choose between the running dataflows
  list     List running dataflows
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help information
  -V, --version  Print version information
```
Copy link
Collaborator

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

Thanks!

@phil-opp phil-opp merged commit db82e47 into main Mar 21, 2023
@phil-opp phil-opp deleted the cli-documentation branch March 21, 2023 09:04
haixuanTao added a commit that referenced this pull request Mar 22, 2023
* [Make dora-rs publishable on crates.io](#211)
* [Add an internal cli argument to create template with path dependencies](#212)

* [Avoid blocking the daemon main loop by using unbounded queue](#230)
* [Inject YAML declared env variable into the runtime](#227)
* [Use rustls instead of system SSL implementation](#216)

* [Refactor python error](#229)
* [The first letter of rust should be lowercase in the command](#226)
* [Add documentation to the cli within the helper mode](#225)
* [Update to safer-ffi v0.1.0-rc1](#218)
* [remove unused variable: data_bytes](#215)
* [Clean up: Remove workspace path](#210)
* [Decouple opentelemetry from tracing](#222)
* [Remove zenoh dependency from dora node API to speed up build](#220)
* [Update to Rust v1.68](#221)
* [Deny unknown fields to avoid typos](#223)
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