Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[F3] port lotus f3 certs list CLI command #5000

Closed
hanabi1224 opened this issue Nov 25, 2024 · 0 comments · Fixed by #5010
Closed

[F3] port lotus f3 certs list CLI command #5000

hanabi1224 opened this issue Nov 25, 2024 · 0 comments · Fixed by #5010
Assignees
Labels
Type: Task Discrete task to implement

Comments

@hanabi1224
Copy link
Contributor

Summary

➜  forest git:(main) ✗ lotus f3 certs list -h
NAME:
   lotus f3 certs list - Lists a range of F3 finality certificates.

                         By default the certificates are listed in newest to oldest order,
                         i.e. descending instance IDs. The order may be reversed using the
                         '--reverse' flag.

                         A range may optionally be specified as the first argument to indicate
                         inclusive range of 'from' and 'to' instances in following notation:
                         '<from>..<to>'. Either <from> or <to> may be omitted, but not both.
                         An omitted <from> value is always interpreted as 0, and an omitted
                         <to> value indicates the latest instance. If both are specified, <from>
                         must never exceed <to>.

                         If no range is specified, the latest 10 certificates are listed, i.e.
                         the range of '0..' with limit of 10. Otherwise, all certificates in
                         the specified range are listed unless limit is explicitly specified.

                         Examples:
                           * All certificates from newest to oldest:
                               $ lotus f3 certs list 0..

                           * Three newest certificates:
                               $ lotus f3 certs list --limit 3 0..

                           * Three oldest certificates:
                               $ lotus f3 certs list --limit 3 --reverse 0..

                           * Up to three certificates starting from instance 1413 to the oldest:
                               $ lotus f3 certs list --limit 3 ..1413

                           * Up to 3 certificates starting from instance 1413 to the newest:
                               $ lotus f3 certs list --limit 3 --reverse 1413..

                           * All certificates from instance 3 to 1413 in order of newest to oldest:
                               $ lotus f3 certs list 3..1413


USAGE:
   lotus f3 certs list [command options] [range]

OPTIONS:
   --output value  The output format. Supported formats: text, json (default: "text")
   --limit value   The maximum number of instances. A value less than 0 indicates no limit. (default: 10 when no range is specified. Otherwise, unlimited.)
   --reverse       Reverses the default order of output.  (default: false)
   --help, -h      show help

Completion Criteria

  • [ ]

Additional Links & Resources

@hanabi1224 hanabi1224 added the Type: Task Discrete task to implement label Nov 25, 2024
@hanabi1224 hanabi1224 self-assigned this Nov 25, 2024
@hanabi1224 hanabi1224 moved this from New to Ready in Forest Backlog 🌲 Nov 25, 2024
@hanabi1224 hanabi1224 moved this from Ready to In progress in Forest Backlog 🌲 Nov 27, 2024
@hanabi1224 hanabi1224 moved this from In progress to In review in Forest Backlog 🌲 Nov 27, 2024
@github-project-automation github-project-automation bot moved this from In review to Done in Forest Backlog 🌲 Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Task Discrete task to implement
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant