pub enum Command {
Show 17 variants
Status,
Whoami,
PairCreate {
label: Option<String>,
expire_secs: Option<u64>,
},
PairList,
PairRevoke {
id: String,
},
PairRevokeAll,
RepoRegister {
path: String,
},
RepoList,
RepoUnregister {
repo_id: String,
},
RepoSetDefaultBranch {
repo_id: String,
branch: String,
},
WorkstreamCreate {
repo_id: String,
name: Option<String>,
branch: Option<String>,
fetch_latest: bool,
},
WorkstreamList {
repo_id: Option<String>,
},
WorkstreamDelete {
workstream_id: String,
},
AgentSpawn {
workstream_id: String,
prompt: String,
},
AgentSpawnInPlace {
workstream_id: String,
tmux_window: u32,
prompt: Option<String>,
},
AgentKill {
agent_id: String,
},
AgentList {
workstream_id: String,
},
}Variants§
Status
Whoami
PairCreate
PairList
PairRevoke
PairRevokeAll
RepoRegister
Register a git repository. Unix-socket only (LocalOnly on TCP).
RepoList
RepoUnregister
RepoSetDefaultBranch
Update the default branch stored for a repo. Unix-socket only.
WorkstreamCreate
Fields
WorkstreamList
repo_id = None means all repos
WorkstreamDelete
AgentSpawn
AgentSpawnInPlace
Claim the caller’s current tmux window as an agent (in-place conversion). The daemon registers the agent and returns the command to exec.
Fields
AgentKill
AgentList
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more