Convert "message..." commands to "draft..." commands

This commit is contained in:
Netscape Navigator 2020-03-13 22:17:56 -05:00
parent afa160c2d2
commit 05480b03e5
3 changed files with 21 additions and 21 deletions

View File

@ -25,7 +25,7 @@ Eg: `pigeon identity show` becomes `./pigeon-cli show`.
- [X] pigeon peer all
- [X] 100% coverage
- [X] Convert `".sig.ed25519"` literals to constants
- [ ] Rename numerous "pigeon message ..." commands to "pigeon draft ..."
- [X] Rename numerous "pigeon message ..." commands to "pigeon draft ..."
- [ ] pigeon draft create
- [ ] pigeon draft append
- [ ] pigeon draft current

View File

@ -75,7 +75,7 @@ module Pigeon
end
end
class PigeonMessage < Thor
class PigeonDraft < Thor
desc "create", "Begin a new Pigeon message"
def create(kind)
@ -138,7 +138,7 @@ module Pigeon
subcommand "peer", Peer
desc "message SUBCOMMAND ...ARGS", "Manage messages"
subcommand "message", PigeonMessage
subcommand "draft", PigeonDraft
end
end

View File

@ -38,43 +38,43 @@ echo "listing all peers:"
./pigeon-cli peer all
echo "Making a new `scratch_pad` log entry"
./pigeon-cli message create scratch_pad
./pigeon-cli draft create scratch_pad
echo "Appending values..."
echo "...string via pipe"
echo "my_value" | ./pigeon-cli message append key1
echo "my_value" | ./pigeon-cli draft append key1
# echo "...string with no quotes"
# ./pigeon-cli message append key2 my_value2
# ./pigeon-cli draft append key2 my_value2
# echo "...string with quotes"
# ./pigeon-cli message append key3 "my_value3"
# ./pigeon-cli draft append key3 "my_value3"
# echo "...message ID"
# ./pigeon-cli message append key4 \%jvKh9yoiEJaePzoWCF1nnqpIlPgTk9FHEtqczQbvzGM=.sha256
# echo "...draft ID"
# ./pigeon-cli draft append key4 \%jvKh9yoiEJaePzoWCF1nnqpIlPgTk9FHEtqczQbvzGM=.sha256
# echo "...blob"
# ./pigeon-cli message append key5 \&29f3933302c49c60841d7620886ce54afc68630242aee6ff683926d2465e6ca3.sha256
# ./pigeon-cli draft append key5 \&29f3933302c49c60841d7620886ce54afc68630242aee6ff683926d2465e6ca3.sha256
# echo "...identity"
# ./pigeon-cli message append key6 \@galdahnB3L2DE2cTU0Me54IpIUKVEgKmBwvZVtWJccg=.ed25519
# ./pigeon-cli draft append key6 \@galdahnB3L2DE2cTU0Me54IpIUKVEgKmBwvZVtWJccg=.ed25519
# echo "== show draft message"
# ./pigeon-cli message show
# echo "== show draft"
# ./pigeon-cli draft show
# echo "== sign (publish, save, commit, etc) draft message"
# ./pigeon-cli message sign
# echo "== sign (publish, save, commit, etc) draft"
# ./pigeon-cli draft sign
# echo "=== add a second message to the db"
# ./pigeon-cli message create second_test
# echo "=== add a second draft to the db"
# ./pigeon-cli draft create second_test
# echo "=== append hello:'world' to message:"
# ./pigeon-cli message append hello "world"
# echo "=== append hello:'world' to draft:"
# ./pigeon-cli draft append hello "world"
# echo "=== Sign message #2"
# ./pigeon-cli message sign
# echo "=== Sign draft #2"
# ./pigeon-cli draft sign
# echo "=== getting status:"
# ./pigeon-cli status