Skip to content

feat(iam): Add commands to manage user tokens#103

Merged
amstuta merged 1 commit intomainfrom
dev/aamstutz/add-iam-token-cmds
Nov 27, 2025
Merged

feat(iam): Add commands to manage user tokens#103
amstuta merged 1 commit intomainfrom
dev/aamstutz/add-iam-token-cmds

Conversation

@amstuta
Copy link
Collaborator

@amstuta amstuta commented Nov 27, 2025

Description

Add commands to manage IAM user personal access tokens.

Fixes #87 (issue)

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code
  • I updated the documentation by running make doc
  • I ran go mod tidy
  • I have added tests that prove my fix is effective or that my feature works

@amstuta amstuta requested a review from a team as a code owner November 27, 2025 07:46
@amstuta amstuta force-pushed the dev/aamstutz/add-iam-token-cmds branch from 00467a6 to f844a4b Compare November 27, 2025 08:06
mxpetit
mxpetit previously approved these changes Nov 27, 2025
func getGenericCreateCmd(resource, baseCommand, flagsSample, path, bodyExample string,
openAPISchema []byte, positionalArgs []string, fn func(*cobra.Command, []string),
) *cobra.Command {
formattedArgs := ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

	var formattedArgs strings.Builder
	for _, arg := range positionalArgs {
		fmt.Fprintf(&formattedArgs, " <%s>", arg)
	}

	createCmd := &cobra.Command{
		Use:   "create" + formattedArgs.String(),

Signed-off-by: Arthur Amstutz <arthur.amstutz@corp.ovh.com>
@amstuta amstuta merged commit 0a7ae81 into main Nov 27, 2025
5 checks passed
@rbeuque74 rbeuque74 deleted the dev/aamstutz/add-iam-token-cmds branch November 30, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Create a new Personal Access Token (PAT) for an IAM local user

3 participants