authmate: Refactor using cobra #131

Closed
opened 2023-06-07 06:53:44 +00:00 by dkirillov · 1 comment
Collaborator

It's getting harder to maintain and extend authmate command line tool. Now it's in just one file and use https://github.com/urfave/cli. Probably it isn't the best choice, especially if we want to introduce sub commands (e.g. one to interact with cred, another to interact with presigned urls).

Suggestion:
Make some refactor and start using https://github.com/spf13/cobra

It's getting harder to maintain and extend authmate command line tool. Now it's in just [one file](https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/acb6e8cbcae7e2b3c894c8a160088655f8b26642/cmd/s3-authmate/main.go) and use https://github.com/urfave/cli. Probably it isn't the best choice, especially if we want to introduce sub commands (e.g. one to interact with cred, another to interact with presigned urls). Suggestion: Make some refactor and start using https://github.com/spf13/cobra

I think we can do this without breaking command line interface compatibility.

I think we can do this without breaking command line interface compatibility.
alexvanin added this to the v0.28.0 milestone 2023-06-15 11:38:29 +00:00
dkirillov self-assigned this 2023-06-22 07:47:17 +00:00
alexvanin referenced this issue from a commit 2023-06-27 11:39:32 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#131
There is no content yet.