| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
A placeholder may be written $(env:NAME), $(file:PATH) or $(cmd:COMMAND),
ending at the parenthesis matching its own: the same as with braces,
nesting and all. A configuration written in Nix, or passed through a
systemd unit, needs no escapes so.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
file+raw:, cmd+raw: and env+raw:, and format = "raw" in a table, give
what is there byte for byte (Imported::Raw): no line break removed at
its end, and what is no text taken, as a key or a certificate needs.
Text and JSON still must be UTF-8, and say +raw where they aren't.
A placeholder gives text; in a +raw importer one may be +raw too, and
its bytes go in as they are, into a name, a path, an argument or a
shell's positional parameter. Into text none does: not into a text or
JSON importer, nor into text with placeholders.
continuum takes a +raw value as one text, read as nothing else; one
that is no UTF-8 it refuses, an option being text.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A name, a path, a command and each argument of an importer may hold
placeholders of their own. There only ${env:, ${file: and ${cmd: begin
one, $${ is a ${, and every other $ stays: a command's are its shell's.
What a placeholder gives is never run. Into a name, a path and an
argument it goes as text, an argument staying one. A shell command gets
it as a positional parameter, the placeholder becoming a reference to
it, "${1}", or ${1} inside double quotes: no part of the script,
whatever it holds. import::Shell tells where in a script a place is,
as far as that reference needs; where it can't be written as one word
(single quotes, backquotes, $((…)), the shell's ${…}, after a backslash
or a here-document), the command is refused. What it gets wrong can
refuse a reference or have the shell split it, never run it.
An importer has its directory itself (Importer::dir), a file's path
joined with it when read, so that a path may hold placeholders.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
A record is what votes go by, and what `again` signs anew from; for
logging in as the party, and for `status`, it only named the party. So
someone who only reads needed a record, begun with `init`, which should
never vote beside the party's own.
`--party NAME` (an option as node, key and record are, so party.toml
holds it too) names the party where no record does (working_as): `init`
the one it begins a record of, else the record's, else --party; --party
naming another than these is an error. Commands that sign still take a
record.
|
| |
|
|
|
|
|
|
|
|
| |
Where --node names no user and no --token is given, the client logs in
to the node as its party (Node::log_in): a challenge, signed with --key
(a file's, or through the ssh-agent) for continuum-login, for
POST /auth/login/party, whose token goes with every request then. The
party is the one its record names, or, for `init`, the one it begins a
record of. A party's people need a node's address and a key of their
party's, nothing of its operator's.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A hand-written completion, where distributions package it:
share/bash-completion/completions/continuum-party, read by
bash-completion when first needed (it uses _init_completion and
_filedir where they are, plain compgen else).
It completes the commands, the intents of `propose` and `fork` (`fork`
without `checkpoint`, with `proposal`), the options of each, files where
one is taken, `--federation` from ~/.config/continuum/federations (or
$XDG_CONFIG_HOME's), and `--revision` and `propose revision` from the
features `--version` names. From the node, asked with the options given
before the command: the proposals on the current version by hash
(`proposals`), for vote, show and fork proposal; the parties (`status`),
for remove, give, keys and nodes; and the places holding a value
(`values`), for write and values.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A party named its node, key and record on every command, or a file of
them with --config; one voting in several federations kept files apart
by hand. Without --config, the client now reads a federation's own
directory, `continuum/federations/NAME` in $XDG_CONFIG_HOME or
~/.config: its `party.toml` of the client's options, its record
(`record`) and, where there, its key (`key`); options on the command
line, or `record` and `key` in `party.toml`, win.
`--federation NAME` chooses one; where there is only one, it is used
without being named; where there are several, the client says which
there are and asks for one. `root`, `judge` and `twice`, using no
options, read none. `init --federation NAME` begins a federation's
directory, only its owner reading it, its `party.toml` holding the
options given on the command line with it (`node`, `token`, `key`, the
key's path made absolute; the node's default left out), and the record
in it.
|
| |
|
|
|
|
|
|
| |
Where a document names a section of another after linking to it
("([`store.md`](store.md), Pinned checkpoints)"), the name links to that
section too, by the id both GitHub and cgit's about filter give its
heading; paragraphs that grew past the width are wrapped anew, links and
code kept on one line each.
|
| |
|
|
|
|
|
|
|
| |
`--key` gives a public key itself, an `authorized_keys` line, as well as
a file of them: of a file of several, the first signs, with a warning
naming it, and another is given itself to sign with it. An agent that
doesn't hold the key given signs nothing, and the client stops before it
records or puts what it would have signed, saying which key it asked
for.
|
| |
|
|
|
|
|
|
|
| |
`continuum-party` takes its options (`node`, `token`, `key`, `record`:
`config::PARTY_OPTIONS`) on the command line and in configuration files of the node's
format: `--config`, repeatable, arguments winning, `--unset`, includes and imports. The
configuration's loader takes the options it reads as a table (`config::with_options`,
`config::merged`, `file::load_with`), the node's or the client's, and a key naming
none of them is an error in either; `node` and `token` are secrets, never logged.
|
| |
|