pub enum Commands {
Show 33 variants
Auth {
cmd: AuthCmd,
},
Install {
target: String,
},
Init {
repository: Option<String>,
provider: Option<String>,
remote_url: Option<String>,
workspace_id: Option<String>,
remote: Option<String>,
reset: bool,
},
Configure {
args: ConfigureArgs,
},
Choose {
cmd: ChooseCmd,
},
Backend {
cmd: BackendCmd,
},
Completions {
shell: Shell,
},
Doctor {
repair: bool,
},
Status,
Sync {
repository: String,
},
Create {
entity_type: String,
entity_id: String,
repository: String,
name: String,
author: String,
},
Resolve {
uri: String,
branch: Option<String>,
commit: Option<String>,
format: String,
provenance: bool,
include_blobs: bool,
},
Presign {
uri: String,
representation: String,
branch: Option<String>,
commit: Option<String>,
ttl_seconds: Option<u64>,
http_url: Option<String>,
token_env: Option<String>,
},
Query {
uri: String,
path: String,
format: String,
},
Commit {
repository: String,
message: String,
author: String,
},
History {
uri: String,
limit: usize,
},
List {
repository: Option<String>,
entity_type: Option<String>,
},
Branch {
repository: String,
name: Option<String>,
},
Set {
uri: String,
key: String,
value: String,
message: String,
author: String,
},
Add {
uri: String,
key: String,
file: PathBuf,
format: String,
message: String,
author: String,
},
Revert {
repository: String,
commit: String,
author: String,
},
Pull {
url_or_name: String,
},
Push {
repository: String,
remote: String,
branch: Option<String>,
},
Remote(RemoteCmd),
Sign {
uri: String,
},
Verify {
uri: String,
},
Switch {
repository: String,
name: String,
},
Head {
repository: String,
},
Validate {
uri: Option<String>,
file: Option<PathBuf>,
},
Schema {
name: String,
format: String,
},
Diff {
base_file: PathBuf,
candidate_file: PathBuf,
format: String,
},
Merge {
base: PathBuf,
current: PathBuf,
proposed: PathBuf,
format: String,
},
ContentHash {
file: PathBuf,
},
}Variants§
Auth
Manage secure authentication for the configured Lore provider.
Install
Install required dependencies.
Init
Initialize a repository repository and/or configure the backend provider.
When a repository name is provided, creates the repository structure (directories, config, repository manifest, initial commit). When –provider is given (or no provider is configured), sets up the backend provider. Both can be combined:
px init toystory # create repository px init toystory –provider local # create repository + configure provider px init –provider local # configure provider only
Fields
Configure
Configure version-control backend (unified: replaces px choose + px backend).
Examples: px configure # show current config px configure status # show current config px configure local # switch to local daemon px configure remote –remote-url lore://192.168.0.27:41337 px configure portals-cloud –workspace-id my-ws px configure –provider remote –remote-url lore://host:41337 –reset
Fields
args: ConfigureArgsChoose
Choose backend provider (deprecated: use px configure).
Backend
Configure or inspect the version-control backend (deprecated: use px configure).
Fields
cmd: BackendCmdSubcommand for backend.
Completions
Generate shell completions for px.
Usage: px completions bash > ~/.local/share/bash-completion/completions/px px completions zsh > ~/.zfunc/_px px completions fish > ~/.config/fish/completions/px.fish source <(px completions bash) # ephemeral
Doctor
Run diagnostics and repair.
Status
Show system status.
Sync
Sync with remote.
Create
Create a new entity manifest.
Fields
Author identifier.
Resolve
Resolve a PX URI to its manifest or a subtree.
Fragment queries are supported via the URI: px resolve px://toystory/character/woody#references.appears_in
Fields
Presign
Create a time-limited public URL for a committed representation.
Fields
uri: StringEntity ID, e.g. 25th-chapter/character/nathan-gunn. The px:// prefix is optional; fragments are not supported.
Query
Query a subtree from a manifest.
Fields
Commit
Commit changes to a repository repository.
History
View commit history for an entity.
List
List repositories or entities within a repository.
Fields
Branch
Create or list branches.
Fields
Set
Set a property on an entity manifest.
Fields
Author identifier.
Add
Add a file representation to an entity manifest.
Fields
Author identifier.
Revert
Revert a commit by hash (undoes all changes in that commit).
Pull
Clone or pull a repository from a remote.
If the argument is a URL, the repo is cloned (name is read from the repo’s own config). If it’s a repository name, the repo must already exist locally and will be updated via pull.
Push
Push the current branch to its configured upstream remote.
Fields
Remote(RemoteCmd)
Manage remotes on a repository.
Sign
Sign a manifest (stub for v0).
Verify
Verify a manifest signature (stub for v0).
Switch
Switch to a branch.
Head
Show the current HEAD commit hash.
Validate
Validate a manifest against the PX schema.
Fields
Schema
Print a JSON Schema for manifest or commit types.
Diff
Show diff between two manifest files or versions.
Fields
Merge
Three-way merge of JSON/YAML values.
Fields
ContentHash
Compute the BLAKE3 content hash of a file.
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand