List profile inspection in CLI usage
This commit is contained in:
@@ -753,4 +753,5 @@ func printUsage(w io.Writer) {
|
|||||||
fmt.Fprintln(w, " render: scriptorium render [--config PATH] [--prompt-dir DIR] [--profile-dir DIR] --prompt ID [--prompt-version VERSION] [--input name=path] [--profile ID] [--session-id ID] [--llm-base-url URL] [--model NAME] [--api-key-env ENV] [--temperature N] [--max-tokens N] [--top-p N] [--reasoning-effort VALUE] [--var k=v] [--format text|json] [--out path] [--timeout 10m]")
|
fmt.Fprintln(w, " render: scriptorium render [--config PATH] [--prompt-dir DIR] [--profile-dir DIR] --prompt ID [--prompt-version VERSION] [--input name=path] [--profile ID] [--session-id ID] [--llm-base-url URL] [--model NAME] [--api-key-env ENV] [--temperature N] [--max-tokens N] [--top-p N] [--reasoning-effort VALUE] [--var k=v] [--format text|json] [--out path] [--timeout 10m]")
|
||||||
fmt.Fprintf(w, " serve: scriptorium serve [--config PATH] [--addr %s] [--prompt-dir DIR] [--profile-dir DIR] [--schema-dir DIR] [--artifact-root DIR] [--max-request-bytes N] [--max-artifact-bytes N] [--max-response-bytes N]\n", defaults.HTTPAddrDefault)
|
fmt.Fprintf(w, " serve: scriptorium serve [--config PATH] [--addr %s] [--prompt-dir DIR] [--profile-dir DIR] [--schema-dir DIR] [--artifact-root DIR] [--max-request-bytes N] [--max-artifact-bytes N] [--max-response-bytes N]\n", defaults.HTTPAddrDefault)
|
||||||
fmt.Fprintln(w, " inspect prompt: scriptorium inspect prompt --prompt ID [--prompt-version VERSION] [--config PATH] [--prompt-dir DIR] [--format text|json] [--out path]")
|
fmt.Fprintln(w, " inspect prompt: scriptorium inspect prompt --prompt ID [--prompt-version VERSION] [--config PATH] [--prompt-dir DIR] [--format text|json] [--out path]")
|
||||||
|
fmt.Fprintln(w, " inspect profile: scriptorium inspect profile --profile ID [--config PATH] [--profile-dir DIR] [--format text|json] [--out path]")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -217,6 +217,8 @@ func TestUsageIncludesExecutionAndServeFlags(t *testing.T) {
|
|||||||
"--max-request-bytes",
|
"--max-request-bytes",
|
||||||
"--max-artifact-bytes",
|
"--max-artifact-bytes",
|
||||||
"--max-response-bytes",
|
"--max-response-bytes",
|
||||||
|
"inspect prompt",
|
||||||
|
"inspect profile",
|
||||||
} {
|
} {
|
||||||
if !strings.Contains(usage, want) {
|
if !strings.Contains(usage, want) {
|
||||||
t.Fatalf("expected usage to include %q, got %q", want, usage)
|
t.Fatalf("expected usage to include %q, got %q", want, usage)
|
||||||
|
|||||||
Reference in New Issue
Block a user