pub enum SpaceCommand {
Show 24 variants
New {
name: String,
group: bool,
on: Vec<String>,
},
AddGroup {
space: String,
group: String,
role: RoleArg,
},
RemoveGroup {
space: String,
group: String,
},
Agree {
group: String,
space: String,
},
Withdraw {
group: String,
space: String,
},
List,
Take {
wanted: String,
},
Drop {
wanted: String,
},
Allow {
space: String,
device: String,
},
Show {
space: String,
},
Rename {
space: String,
name: String,
},
Invite {
space: String,
role: RoleArg,
person: Option<String>,
yes: bool,
port: Port,
},
Join {
code: PairingCode,
yes: bool,
on: Vec<String>,
},
AiAgents {
space: String,
switch: Option<Switch>,
},
Link {
space: String,
member: String,
person: Option<String>,
},
Leave {
space: String,
yes: bool,
},
Remove {
space: String,
member: String,
yes: bool,
},
LetIn {
space: String,
member: String,
},
MakeDirect {
space: String,
member: String,
role: RoleArg,
},
Confirm {
space: String,
},
Claim {
space: String,
yes: bool,
},
Reject {
space: String,
member: String,
},
Accept {
space: String,
member: String,
yes: bool,
},
Role {
space: String,
member: String,
role: RoleArg,
},
}Expand description
What nib space can do.
Variants§
New
Makes a space besides your personal one, or a group.
A space, such as Family, reaches those of your other devices that take new
spaces, as computers do, when they sync; a phone asks first, with nib space take,
unless you give it the space with –on. With –group, makes a group, such as
Household: a space with members and no entities of its own, which you add to spaces
with nib space add-group, so that whoever you invite to the group joins each of them.
Fields
AddGroup
Adds a group to a space, or to another group.
You add it as an admin of the space who is a member of the group: its members join with the lower of the group’s role there and their own role in the group, and, added to a group, join every space that group is in. The group joins once an admin of the group agrees, at once if you are one.
Fields
RemoveGroup
Takes a group out of a space, as an admin of the space.
Its members leave the space, unless they are members there some other way.
Fields
Agree
Agrees, as an admin of a group, that it join a space.
The space is one that a request in the group names, as nib space show lists them.
Fields
Withdraw
Withdraws, as an admin of a group, its agreement to join a space.
It is withdrawn for good: its members leave the space, unless they are members there some other way.
Fields
List
Lists your spaces, and which of your devices hold each.
With how many entities each holds here. Your personal space comes first, then those on this device, then those on your other devices alone: one given to this device waits for nib space take, and one that another device of yours asks for, for nib space allow here.
Take
Takes a space onto this device.
One given to this device, at once: it fills as it syncs. Any other, such as one made on another device of yours, or one this device dropped, it asks for: approve it with nib space allow on a device that holds it.
Fields
Drop
Drops a space from this device, which your other devices keep.
Refused while, without this device, the space would be below its storage policies or on no other device of yours, and while a tree’s folder or an edited checkout of it is here: it says what is missing. Otherwise it waits until your changes there, and the copies of its files, are on other disks as its policies ask, which the holder of the sync role, such as nib sync –serve, proves, removing this device’s copies a little at a time; and until another device holds its secrets, where this one does. Then this device says that it no longer holds the space, and deletes it, its unedited checkouts too, once another device of yours that holds it has learned so, after their next syncs. Run it again to see what it waits for; nib space take keeps the space until then. A space that you left goes at once.
Fields
Allow
Gives a space to another device of yours that asked for it.
The device takes it as it syncs; one that dropped the space gets it back.
Fields
Show
Shows a space’s members, groups, claims and changes set aside.
For a shared space: its members, with their roles and devices; the groups in it, with their roles, whether they agreed to join, and their members; the claims to its admin role, with when each takes effect; and the changes set aside there, which wait for an admin’s review: what members changed before they learned that they had left, been removed or lost a role, and what their roles never allowed, with the entities each changes. For a group, also the requests in it that it join spaces, with each space’s name where it is sealed to you, as to the group’s admins.
Rename
Renames a space; your personal space keeps its name.
Invite
Invites someone to a space, as an admin of it.
It shows a code to give to nib space join on their device, which then gets the space and syncs it with yours. The code works once, for ten minutes, and both devices must be on the same network. It shows who asks to join before they are added, and asks you to confirm, but with –yes.
Fields
Join
Joins a space that someone invited you to, with their code.
Their device shows the code: this device gets the space, and those of your other devices that take new spaces get it when they sync. If the invitation names the person in the space whom you are, it asks whether you are.
Fields
code: PairingCodeThe code, as nib space invite shows it.
AiAgents
Says whether a space allows AI agents, or sets it as an admin.
An AI agent’s copy of the library is listed there, by nib device pair –ai-agent –in, only while it does. Without on or off, says whether it does.
Fields
Link
Links a member of a space to the person in it whom they are.
Without a person, it unlinks them: yourself, or, as an admin, another member. The link holds once an admin and the member agree, and history names the member by that person in the space.
Fields
Leave
Leaves a space, keeping what your devices have there, read only.
Your devices get nothing added after; the members who stay give the space a new key. You come back only if an admin invites you again, or lets you back in if you are in it through a group, whose member you stay. The only admin makes another an admin first; the last member’s leaving closes the space. Without –yes, it says what leaving would do.
Remove
Removes a member of a space, as an admin of it.
Every device of theirs there keeps what it has, read only, and gets nothing added after, and the space gets a new key. What they change before they learn of it waits for an admin’s review. A member through a group is kept out of the space, and stays in the group, until you let them back in. Without –yes, it says what removing would do.
Fields
LetIn
Lets a member through a group back in, as an admin of the space.
The space kept them out, as nib space remove does, while they stayed in the group.
Fields
MakeDirect
Makes a member through a group a direct member of a space.
An admin of the space does it, such as to make them an admin, with no code: once they confirm with nib space confirm, their devices list themselves on the new record, with its role.
Fields
Confirm
Confirms the record that an admin of a space made for you.
As a member through a group, you become a direct member there, with its role, and your other devices follow.
Claim
Claims the admin role of a space when its admins are gone.
You claim it as a direct member who is an editor there: every member sees the claim, which takes effect 30 days after another member’s device first sees it, unless an admin rejects it, and for 30 days after that you can only undo. Without –yes, it says what claiming would do.
Reject
Rejects a member’s claim to the admin role, as an admin.
The claim, and what they did as an admin, count for nothing once another member’s device sees the rejection, if that is within 30 days after the claim took effect.
Fields
Accept
Accepts a member’s changes that were set aside in a space.
As an admin of the space, you accept them: they count after all, with their own times. Only those that the member’s role allowed when they made them are accepted; changes that say who may write to the space never are. Without –yes, it says how many it would accept.
Fields
Role
Gives a member of a space a role, as an admin of it.
Trait Implementations§
Source§impl Debug for SpaceCommand
impl Debug for SpaceCommand
Source§impl FromArgMatches for SpaceCommand
impl FromArgMatches for SpaceCommand
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 SpaceCommand
impl Subcommand for SpaceCommand
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 subcommandAuto Trait Implementations§
impl Forget for SpaceCommand
impl Freeze for SpaceCommand
impl Move for SpaceCommand
impl RefUnwindSafe for SpaceCommand
impl Send for SpaceCommand
impl Sync for SpaceCommand
impl Unpin for SpaceCommand
impl UnsafeUnpin for SpaceCommand
impl UnwindSafe for SpaceCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.