Skip to main content

forms/
ssh_key.rs

1//! The SSH key form descriptor.
2
3use crate::descriptor::{Action, Form, TEXT, field};
4
5/// Register a public key with an optional label; without one the key line's
6/// comment names it.
7pub const SSH_KEY_ADD: Form = Form {
8    name: "ssh-key-add",
9    title: "Add SSH key",
10    fields: &[
11        field("key", "Public key", TEXT, true),
12        field("label", "Label", TEXT, false),
13    ],
14    action: Action::Mutation,
15};