-
Notifications
You must be signed in to change notification settings - Fork 12
ref: doctor
+
#259
ref: doctor
+
#259
Changes from all commits
6164b11
50fe23b
2cbd1f2
4e2553e
2d50e53
7097d20
ea4ba7f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -26,7 +26,21 @@ $ gto describe churn -r https://github.com/iterative/example-gto | |||||||||||||||||
} | ||||||||||||||||||
``` | ||||||||||||||||||
|
||||||||||||||||||
The output is in JSON format for ease of parsing programatically. | ||||||||||||||||||
The output is in JSON format for ease of parsing programmatically. | ||||||||||||||||||
|
||||||||||||||||||
Note, that for local repos the `artifacts.yaml` is read from the workspace | ||||||||||||||||||
without Git, so if you have uncommitted changes, they will be reflected in the | ||||||||||||||||||
output. If you want to read from specific commit, you need to specify `--rev` | ||||||||||||||||||
option. | ||||||||||||||||||
|
||||||||||||||||||
You can also get annotation for specific versions (these are the same shortcuts | ||||||||||||||||||
Comment on lines
+31
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The first part is expected, I think. We can simplify this
Suggested change
|
||||||||||||||||||
as in `gto show`): | ||||||||||||||||||
|
||||||||||||||||||
```cli | ||||||||||||||||||
$ gto describe churn@latest # highest version by SemVer | ||||||||||||||||||
$ gto describe churn#dev # version in stage `dev` | ||||||||||||||||||
$ gto describe [email protected] # version `v3.0.0` | ||||||||||||||||||
``` | ||||||||||||||||||
|
||||||||||||||||||
## Options | ||||||||||||||||||
|
||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# describe | ||
|
||
Display GTO version and check the registry for problems. | ||
|
||
## Synopsis | ||
|
||
```usage | ||
usage: gto doctor [-r <text>] [-A] [-h] | ||
``` | ||
|
||
## Description | ||
|
||
This will check the registry and print all the issues if found: | ||
jorgeorpinel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
```cli | ||
$ gto doctor | ||
🪴 GTO Version: 0.2.5 | ||
--------------------------------- | ||
INDEX='artifacts.yaml' | ||
TYPES=None | ||
STAGES=None | ||
LOG_LEVEL='INFO' | ||
DEBUG=False | ||
ENRICHMENTS=[] | ||
AUTOLOAD_ENRICHMENTS=True | ||
CONFIG_FILE_NAME='.gto' | ||
EMOJIS=True | ||
--------------------------------- | ||
✅ No issues found | ||
``` | ||
|
||
## Options | ||
|
||
- `-r <text>`, `--repo <text>` - Local or remote repository [default: .] | ||
- `-A`, `--all-commits` - Read all commits | ||
- `-h`, `--help` - Show this message and exit. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,13 @@ $ gto show churn#prod | |
╞════════════╪═══════════╪═════════╪═════════════════════╪══════════════╡ | ||
│ churn │ v3.0.0 │ prod │ 2022-10-28 23:53:53 │ [email protected] │ | ||
╘════════════╧═══════════╧═════════╧═════════════════════╧══════════════╛ | ||
|
||
$ gto show [email protected] | ||
╒════════════╤═══════════╤═════════╤═════════════════════╤══════════════╕ | ||
│ artifact │ version │ stage │ created_at │ ref │ | ||
╞════════════╪═══════════╪═════════╪═════════════════════╪══════════════╡ | ||
│ churn │ v3.0.0 │ prod │ 2022-10-28 23:53:53 │ [email protected] │ | ||
╘════════════╧═══════════╧═════════╧═════════════════════╧══════════════╛ | ||
``` | ||
|
||
By default, GTO is configured to adhere to what we call "Environments" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ You may need the artifact's file path. If | |
`gto describe`: | ||
|
||
```cli | ||
$ gto describe churn --rev churn@v3.0.0 --path | ||
$ gto describe [email protected] --path | ||
models/churn.pkl | ||
``` | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -623,6 +623,11 @@ | |
"slug": "dvc", | ||
"label": "GTO with DVC", | ||
"source": "dvc.md" | ||
}, | ||
{ | ||
"slug": "mlem", | ||
"label": "GTO with MLEM", | ||
"source": "mlem.md" | ||
} | ||
] | ||
}, | ||
|
@@ -661,6 +666,11 @@ | |
"source": "describe.md", | ||
"label": "describe" | ||
}, | ||
{ | ||
"slug": "doctor", | ||
"source": "doctor.md", | ||
"label": "doctor" | ||
Comment on lines
+669
to
+672
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The cmd ref changes are completely unrelated, right? Is the generator script running automatically whenever you change anything? Otherwise 🙏🏼 let's make separate PRs for ease of review in the future. Thanks There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, they are unrelated. It doesn't run automatically, I do that manually. But, I can do that in separate PRs in future, sure. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! Actually this PR was mostly about that now that I see haha. So I just changed the title 😬 and labels |
||
}, | ||
{ | ||
"slug": "history", | ||
"source": "history.md", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem important enough to be the only option explained directly in the Description. Probably adding to the Options section is enough?