Add a new command group called access, which groups ACT-related commands. Implement init command, that takes a postage batch stamp ID (required), a name (required) and a list of public keys of grantees (optional).
Then it sends the request to Bee, that returns with a list reference and a history address, which we can show if the verbose flag is enabled.
# Inputs:
# - stamp: postage stamp ID
# - name: a user-friendly name for the grantee list
# - grantee: array of public keys of grantees (optional)
# - verbose: show more details in the output
#
# Outputs:
# - grantee-list-ref: new reference for the grantee list (in case of verbose flag)
# - act-history-address: new ACT history address (in case of verbose flag)
#
# This command would basically call `POST /grantee` with the provided grantee list or empty if not provided
swarm-cli access init --stamp <stamp> --name <name> [--grantee <pubkey1> --grantee <pubkey2>]
Add a new command group called
access, which groups ACT-related commands. Implementinitcommand, that takes a postage batch stamp ID (required), a name (required) and a list of public keys of grantees (optional).Then it sends the request to Bee, that returns with a list reference and a history address, which we can show if the verbose flag is enabled.