From 81f867602309c27d7efd861f32a786a569f680d8 Mon Sep 17 00:00:00 2001 From: royroyee Date: Fri, 22 Mar 2024 16:28:13 +0900 Subject: [PATCH] Fix token expiration prompt for clarity --- cmd/token/token_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/token/token_create.go b/cmd/token/token_create.go index 2c851fe..bb3f187 100644 --- a/cmd/token/token_create.go +++ b/cmd/token/token_create.go @@ -64,7 +64,7 @@ func init() { func promptForToken() (auth.APITokenRequest, error) { var tokenRequest auth.APITokenRequest tokenRequest.Name = utils.PromptForRequiredInput("Token name:") - if utils.PromptForBool("Limit: ") { + if utils.PromptForBool("Set expiration for token?: ") { tokenRequest.ExpiresAt = utils.TimeFormat(utils.PromptForIntInput("Valid through (in days): ")) } else { tokenRequest.ExpiresAt = nil