chore: describe necessary scopes (#39889)

This commit is contained in:
David Newell
2025-10-22 16:35:06 +01:00
committed by GitHub
parent d4ac0074cd
commit 375ffd2836

View File

@@ -17,9 +17,10 @@ pub fn login() -> Result<(), Error> {
Text::new("Enter your project ID (the number in your posthog homepage url)").prompt()?;
let token = Text::new(
"Enter your personal API token (see posthog.com/docs/api#private-endpoint-authentication)",
"Enter your personal API token",
)
.with_validator(token_validator)
.with_help_message("See posthog.com/docs/api#private-endpoint-authentication. It will need to have the 'error tracking write' scope.")
.prompt()?;
let token = Token {