Skip to content

Wire donor CLI subcommands into main.rs #8

@jeremymanning

Description

@jeremymanning

Parent: #7

What

Wire DonorCli from src/cli/donor.rs into the Commands::Donor variant in main.rs. The subcommand struct with Join, Status, Pause, Resume, Leave, Credits, Logs already exists — it just needs to replace the unit variant and dispatch to the agent lifecycle module.

Files

  • src/main.rs — change Commands::Donor from unit variant to Donor(cli::donor::DonorCli)
  • src/cli/donor.rs — implement execute() for each subcommand

Current state

Commands::Donor => { println!("worldcompute donor: not yet implemented"); }

Acceptance

worldcompute donor join --consent scientific enrolls the machine as a donor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions