Skip to main content

SpaceCommand

Enum SpaceCommand 

Source
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

§name: String

Its name.

§group: bool

Makes a group.

§on: Vec<String>

Gives it to that device of yours too, by its name or ID, such as a phone, which still takes it only once you say so there with nib space take; give it once for each.

§

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

§space: String

The space or the group, by its name or the start of its ID.

§group: String

The group, by its name or the start of its ID.

§role: RoleArg

The group’s role there: editor or viewer, never admin.

§

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

§space: String

The space, by its name or the start of its ID.

§group: String

The group, by its name or the start of its ID.

§

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

§group: String

The group, by its name or the start of its ID.

§space: String

The space, by its name in the request or the start of its ID.

§

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

§group: String

The group, by its name or the start of its ID.

§space: String

The space, by its name in the request or the start of its ID.

§

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

§wanted: String

The space, by its name or the start of its ID, as nib space list shows it. Not named space, which the global –space would take, for a space this device holds.

§

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

§wanted: String

The space, by its name or the start of its ID. Not named space, which the global –space would take.

§

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

§space: String

The space, by its name or the start of its ID.

§device: String

The device, by its name or ID, as nib space list shows it.

§

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.

Fields

§space: String

The space or the group, by its name or the start of its ID.

§

Rename

Renames a space; your personal space keeps its name.

Fields

§space: String

The space, by its name or the start of its ID.

§name: String

Its new 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

§space: String

The space, by its name or the start of its ID.

§role: RoleArg

The role they get.

§person: Option<String>

The person in the space whom they are, such as Olga in a family tree, by name or ID: they are linked to that person once they agree, as they join.

§yes: bool

Adds whoever joins with the code, without asking.

§port: Port

The port to take the connection on.

§

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: PairingCode

The code, as nib space invite shows it.

§yes: bool

Agrees, without asking, to be the person whom the invitation names you.

§on: Vec<String>

Gives the space to that device of yours too, by its name or ID, as nib space new –on does; give it once for each.

§

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

§space: String

The space, by its name or the start of its ID.

§switch: Option<Switch>

Whether it allows them.

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

§space: String

The space, by its name or the start of its ID.

§member: String

The member, by their name or the start of their record’s ID.

§person: Option<String>

The person, by name or ID.

§

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.

Fields

§space: String

The space, by its name or the start of its ID.

§yes: bool

Leaves.

§

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

§space: String

The space, by its name or the start of its ID.

§member: String

The member, by their name or the start of their record’s ID, or that of their record in a group.

§yes: bool

Removes them.

§

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

§space: String

The space, by its name or the start of its ID.

§member: String

The member, by their name or the start of their record’s ID in the group.

§

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

§space: String

The space, by its name or the start of its ID.

§member: String

The member, by their name or the start of their record’s ID in the group.

§role: RoleArg

Their role as a direct member.

§

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.

Fields

§space: String

The space, by its name or the start of its ID.

§

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.

Fields

§space: String

The space, by its name or the start of its ID.

§yes: bool

Claims the role.

§

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

§space: String

The space, by its name or the start of its ID.

§member: String

The member, by their name or the start of their record’s ID.

§

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

§space: String

The space, by its name or the start of its ID.

§member: String

The member, by their name or the start of their record’s ID.

§yes: bool

Accepts them.

§

Role

Gives a member of a space a role, as an admin of it.

Fields

§space: String

The space, by its name or the start of its ID.

§member: String

The member, by their name or the start of their record’s ID.

§role: RoleArg

The role they get.

Trait Implementations§

Source§

impl Debug for SpaceCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for SpaceCommand

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for SpaceCommand

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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>

Convert 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)

Convert &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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more