Skip to content

Extract cli/core; move vote/harvest/admin under issues - #1664

Open
LandynDev wants to merge 1 commit into
feature/repo-registrationfrom
feat/2a-1-cli-core-extraction
Open

Extract cli/core; move vote/harvest/admin under issues#1664
LandynDev wants to merge 1 commit into
feature/repo-registrationfrom
feat/2a-1-cli-core-extraction

Conversation

@LandynDev

Copy link
Copy Markdown
Collaborator

Part of repo-registration phase 2a (task 2a-1).

Extracts generic CLI infrastructure out of issue_commands into gittensor/cli/core/ so upcoming gitt repo and gitt validator groups can build on it without importing issue code:

  • core/help.py - Styled Click group/command classes (moved verbatim)
  • core/json_output.py - JSON envelope helpers (moved from cli/json_output.py)
  • core/helpers.py - config/network resolution, wallet/network/behavior option decorators, console output, confirm prompt, GitHub + SS58 validation, format_alpha
  • core/types.py - REPO and SS58 param types

issue_commands keeps only issue-specific pieces: bounty validation, issue contract-storage readers, PR-submission rendering, CONTRACT_ISSUE/GITHUB_ISSUE types.

Regroups root commands under the issues group, freeing the top-level namespace for phase 2a-7:

  • gitt vote ... -> gitt issues vote ...
  • gitt harvest -> gitt issues harvest
  • gitt admin ... -> gitt issues admin ... (alias gitt i a ...)

No behavior changes inside commands; imports, docstrings, and tests repointed. 202 CLI tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant