cli

Command-line interface for Radroots
git clone https://radroots.dev/git/cli.git
Log | Files | Refs | README | LICENSE

commit 61fc04b419e32e3d5acc715358a6850340351f9b
parent 88a1d4019ef3fa23b1f5ee585086f1cb3c23d233
Author: triesap <tyson@radroots.org>
Date:   Mon, 27 Apr 2026 10:50:19 +0000

cli: include listing key in create output

- add the listing create key field to the runtime output contract
- populate real listing create output from the authored draft product key
- populate dry run listing create output from the same draft product key
- verify final nix check and test acceptance after the repair

Diffstat:
Msrc/domain/runtime.rs | 2++
Msrc/runtime/listing.rs | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/domain/runtime.rs b/src/domain/runtime.rs @@ -1377,6 +1377,8 @@ pub struct ListingNewView { pub file: String, pub listing_id: String, #[serde(skip_serializing_if = "Option::is_none")] + pub key: Option<String>, + #[serde(skip_serializing_if = "Option::is_none")] pub selected_account_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub seller_pubkey: Option<String>, diff --git a/src/runtime/listing.rs b/src/runtime/listing.rs @@ -212,6 +212,7 @@ pub fn scaffold( source: LISTING_SOURCE.to_owned(), file: output_path.display().to_string(), listing_id: draft.listing.d_tag, + key: non_empty(draft.product.key.clone()), selected_account_id: defaults.selected_account_id, seller_pubkey: defaults.selected_account_pubkey, farm_d_tag: defaults.selected_farm_d_tag, @@ -246,6 +247,7 @@ pub fn scaffold_preflight( source: LISTING_SOURCE.to_owned(), file: output_path.display().to_string(), listing_id: draft.listing.d_tag, + key: non_empty(draft.product.key.clone()), selected_account_id: defaults.selected_account_id, seller_pubkey: defaults.selected_account_pubkey, farm_d_tag: defaults.selected_farm_d_tag,