Standardize list commands by implementing the following options:
Additional Fields
Use the --long option to allow users to view additional fields that are hidden by default in standard list outputs.
To provide a consistent pagination experience across different APIs, implement:
--marker <resource>: An anchor for paging (typically a name or ID).--limit <num-resources>: An integer limiting the number of resources returned.
# --long implementation
parser.add_argument(
'--long',
action='store_true',
default=False,
help='List additional fields in output',
)
# Pagination implementation
parser.add_argument(
"--marker",
metavar="<resource>",
help="Anchor for paging (name or ID)",
)
parser.add_argument(
"--limit",
metavar="<num-resources>",
type=int,
help="Limit the number of <resource> returned",
)