Pijul doesn’t help you get started. Can’t I try a local repo? It says I need a key.
pijul init pijul add * pijul record -m "import of source"
The message is only
Error: No identity configured yet. Please use `pijul key` to create one
pijul key generate gives
error: The following required arguments were not provided: `<LOGIN>` USAGE: pijul key generate [OPTIONS] `<LOGIN>` For more information try --help
The specific help doesn’t help. It doesn’t say what a
<LOGIN> is. (and it shows the standard flags that aren’t relevant)
USAGE: pijul key generate [OPTIONS] `<LOGIN>` ARGS: `<LOGIN>` FLAGS: -h, --help Print help information -V, --version Print version information OPTIONS: --email `<EMAIL>`
I had to put backticks around the angle bracketed stuff or Nest stripped them out. Maybe it would be better to use other characters in the actual help text, so it’s not a forever battle with HTML tags.
OK, so the
init needs to prompt for that, or there should be a way to have a local repo without a key, or the help text needs to be more explicit (and matching) so that the user knows what’s going on.
Or all of the above. Everyone should not have to ask you what this means. It doesn’t even mention the Nest.
Agreed it’s not super obvious. Keys are a relative new addition to Pijul, and thus lack some still in UX. I’ll take a look at this issue some time later and see what of your suggestions can be implemented.
About the mention of the Nest, I think Pijul should be hosting agnostic. If a company wants to someday host their server on pijul.company.tld mentioning the nest will be confusing.
@joyously It is the same behaviour
git shows when you never have used git. (Although, they have better error messages.) When you never have used git, it would prompt you on the first
git commit that you haven’t specified an author name and e-mail address, yet. That’s what pijul tries to tell you.
You only need to make an identity with
pijul key generate once. After that, pijul won’t complain again.
I don’t really understand what’s going on when I run
pijul key. I have SSH public keys which I uploaded to Nest. Are those related at all? I couldn’t find any information in the manual about this command.
The key, you create with
pijul key, serves the same purpose as “Your Name <e-mail>” in git or other VCSs. It is there to identify you in your patches. The difference is, that the key is cryptographically verifiable, while anybody could create git commits with “Your Name <e-mail>”. The second feature (not implemented, yet) of it is, that your name (and e-mail address) are no longer tied to your submitted patches. You could later change the name and e-mail address that other users see, when they look at your patches.
SSH keys are purely for authorizing the transport of patches to/from the Nest. They are not part of the VCS.
This is mostly a documentation issue I think, please open a discussion on the manual repository.
(I’m trying to close as many discussions as possible to try and move to beta).
If the code didn’t change, it’s not a documentation problem. This needs a code fix, so that the user understands how to continue. In my opinion, `the init command should indicate that the user needs to be identified if they aren’t yet. Remove the reference to LOGIN and make it understandable.
(side note: this edit box is doing weird things when I try to use back ticks)
I agree that this needs a fix. When I tried Pijul for the first time, I didn’t understand what
<LOGIN> meant. I resorted to reading the code. Since
commands::Identity.login, I concluded that
<LOGIN> refers to the screen name the user wishes to use.
This needs better docs.