Skip to content

CLI: Don't exit(), accept --yes and array inputs for batch operations #5224

@traumschule

Description

@traumschule

Context: #1571, #1591

Scope

  • The CLI uses exit() and cannot be called from node to manage multiple tx after another or in parallel because the child process exits the parent.
  • Many commands require using yes | joystream-cli to force the cli to work. Add --yes as option to all commands that lack it.
  • Managing content often requires calling the same function hundreds of times. Offer to submit parameters as array whenever possible / it makes sense based on context. For example accept assetId / videoId pairs for content:deleteChannelAssetsAsModerator, or even accept a list of assetId and fetch the according video internally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLICommand Line Interface Tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions