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 cli doc #117

Merged
merged 3 commits into from
Mar 13, 2024
Merged

add cli doc #117

merged 3 commits into from
Mar 13, 2024

Conversation

wenzhe-log10
Copy link
Collaborator

No description provided.

@wenzhe-log10 wenzhe-log10 requested review from arjunbansal and nqn March 13, 2024 06:00
cli_docs.md Outdated
To check the details of a certain completions, use [`log10 completions get`](#log10-completions-get).
For instance,
```bash
log10 completions get --id 497974e8-c1ed-4de7-90ab-8f104eb870te
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: should be consistent about the trailing "$"


## CLI References

### Completions
Copy link
Contributor

Choose a reason for hiding this comment

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

cli_docs.md Outdated
@@ -0,0 +1,340 @@
# CLI

Use `log10` CLI to list and download the completions, feedback, and feedback task data at [log10.io](https://log10.io).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Use `log10` CLI to list and download the completions, feedback, and feedback task data at [log10.io](https://log10.io).
Use the `log10` CLI to list and download the completions, feedback, and feedback task data at [log10.io](https://log10.io).

cli_docs.md Outdated

## Get Started

Install log10-io python package (version >= 0.6.7) and [setup Log10](README.md#⚙️-setup)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Install log10-io python package (version >= 0.6.7) and [setup Log10](README.md#⚙️-setup)
Install the `log10-io` python package (version >= 0.6.7) and [setup Log10](README.md#⚙️-setup)

cli_docs.md Outdated

Install log10-io python package (version >= 0.6.7) and [setup Log10](README.md#⚙️-setup)
```bash
pip install log10-io
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pip install log10-io
$ pip install log10-io

cli_docs.md Outdated
```bash
$ log10 completions list --tags foo,bar --from 2024-2-1 --to 2024-2-29
```
Output:
Copy link
Contributor

@nqn nqn Mar 13, 2024

Choose a reason for hiding this comment

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

Suggested change
Output:
#### Output

cli_docs.md Outdated
100%|███████████████████████████████████████████████████████████████████████████| 5/5 [00:03<00:00, 1.31it/s]
```

To check the details of a certain completions, use [`log10 completions get`](#log10-completions-get).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
To check the details of a certain completions, use [`log10 completions get`](#log10-completions-get).
To retrieve details for a specific completion, use [`log10 completions get`](#log10-completions-get).

cli_docs.md Outdated
```

### Feedback Tasks and Feedback
To start adding feedback, first you need to define a feedback task with [`log10 feedback-task create`](#log10-feedback-task-create). Then you can add feedback to a logged completions with [`log10 feedback create`](#log10-feedback-create). For more details, please refer to this [doc](https://log10.io/docs/feedback/feedback#add-feedback).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
To start adding feedback, first you need to define a feedback task with [`log10 feedback-task create`](#log10-feedback-task-create). Then you can add feedback to a logged completions with [`log10 feedback create`](#log10-feedback-create). For more details, please refer to this [doc](https://log10.io/docs/feedback/feedback#add-feedback).
To start adding feedback, first you need to define a feedback task with [`log10 feedback-task create`](#log10-feedback-task-create). Then you can add feedback to a logged completions with [`log10 feedback create`](#log10-feedback-create). For more details, you can read more in [log10's user documentation](https://log10.io/docs/feedback/feedback#add-feedback).

cli_docs.md Outdated
│ 15a5e099-a56a-49d0-b488 │ 29 days ago │ emoji_feedback_task │ feedback │ Provide feedback using emojis │
└─────────────────────────┴─────────────┴────────────────────────────────────────────┴────────────────────────────────────────────┴───────────────────────────────────────────────────┘
```
and check the detail of a task with [`log10 feedback-task get --id`](#log10-feedback-task-get)
Copy link
Contributor

@nqn nqn Mar 13, 2024

Choose a reason for hiding this comment

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

Suggested change
and check the detail of a task with [`log10 feedback-task get --id`](#log10-feedback-task-get)
and retrieve details about a specific task with [`log10 feedback-task get --id`](#log10-feedback-task-get)

cli_docs.md Outdated
To list and download your current feedback, use [`log10 feedback list`](#log10-feedback-list) and [`log10 feedback download`](#log10-feedback-download).
For instance you can list all feedback filtered by a feedback task `--task_id`:
```bash
❯ log10 feedback list --task_id 04405cbc-3420-4901-97b6
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
log10 feedback list --task_id 04405cbc-3420-4901-97b6
$ log10 feedback list --task_id 04405cbc-3420-4901-97b6

@wenzhe-log10 wenzhe-log10 requested a review from nqn March 13, 2024 16:50
@wenzhe-log10 wenzhe-log10 merged commit e0a55c1 into main Mar 13, 2024
1 check passed
@wenzhe-log10 wenzhe-log10 deleted the wenzhe/cli_docs branch March 13, 2024 16:51
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