You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--size-only flag for get and batch-get — print document sizes (bytes/lines) without content output, useful for checking sizes before reading into context
--key-only flag for create-api-key — print only the API key string for easy shell integration: export DEVELOPERKNOWLEDGE_API_KEY=$(dkcli create-api-key -p my-project --key-only)
Enriched create-api-key output — JSON/YAML output now includes full Key resource (restrictions, displayName, createTime, etc.); text output shows restricted API services; restrictions are logged to stderr
Document summary on get — stderr now shows document name, bytes, and lines on every get call
Improvements
Fix potential panic on empty document content (strings.HasSuffix replaces manual index check)
Decouple fetchSearchPage from global pageSize variable for better testability
Refactor outWriter to accept filename parameter, replace printFormatted/printText with explicit io.Writer threading
Add create-api-key help with Long description, examples, and gcloud escalation note