Skip to content

[Core] Use cobra for the Pocket node CLI #835

@Olshansk

Description

@Olshansk

Objective

Use cobra in the node CLI binary consistency and simplicity of tooling across the board.

Origin Document

Screenshot 2023-06-16 at 11 41 55 AM
Screenshot 2023-06-16 at 11 41 57 AM

Goals

  • Make the binary CLI more extendable
  • Use consistent tooling across the board

Deliverable

  • Provide feature parity (e.g. documentation, etc...) by reviewing the RPC CLI and having similar best practices in the node CLI
  • A PR that updates the node CLI to use cobra, in the same fashion as the RPC CLI
  • Use ChatGPT (see image in the bottom of the page) to update the documentation for best practice on our CLI

Non-goals / Non-deliverables

  • Introducing new functionality into the CLI

General issue deliverables

  • Update the appropriate CHANGELOG(s)
  • Update any relevant local/global README(s)
  • Update relevant source code tree explanations
  • Add or update any relevant or supporting mermaid diagrams

Testing Methodology

  • Task specific tests or benchmarks: make ...
  • New tests or benchmarks: make ...
  • All tests: make test_all
  • LocalNet: verify a LocalNet is still functioning correctly by following the instructions at docs/development/README.md
  • k8s LocalNet: verify a k8s LocalNet is still functioning correctly by following the instructions here

Creator: @Olshansk
Co-Owners: @bryanchriswhite


ChatGPT-ChatGPT (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientwork needed to interface with the node (rpc, cli, etc..)communityOpen to or owned by a non-core team membercoreCore infrastructure - protocol relatedtoolingtooling to support development, testing et al

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions