glow
glow copied to clipboard
Improvements to glow CLI
In GitLab by @kwanzknoel on Sep 10, 2021, 02:06
-
[ ] glow should tell users to do something actionable if required options are missing.
For example for
glow add-contact
, the-N
flag is required:> glow add-contact Glow v0.3.0 on Gerbil-ethereum v0.0-344-g266204c, Gerbil-persist v0.0-19-g75d4c45, Gerbil-crypto v0.0-16-g4c7c4a8, Gerbil-POO v0.0-96-g8ab28ef, Gerbil-utils v0.2-134-g124e025, Gerbil v0.16-192-gfa9537be, Gambit 4.9.3-1447-gc0753ff1 In thread primordial: 0 mukn/glow/cli/contacts#add-contact__% 1 ##dynamic-env-bind 2 ##call-with-values 3 clan/exit#call-print-exit 4 ##dynamic-env-bind 5 ##start-main 6 ##kernel-handlers *** ERROR IN mukn/glow/cli/contacts#add-contact__% -- missing name
(Preferred) If options are missing, use
get-or-ask
to prompt user to input the missing option.We could also tell users to use
glow help add-contact
to view the argument schema. See example.Implement this for the following entrypoints:
- [x] add-contact: https://gitlab.com/mukn/glow/-/merge_requests/178.
- [ ] add-identity
- [ ] digest
- [ ] transfer
- [ ] faucet
- [ ] erc20-transfer
- [ ] generate-identity
- [ ] remove-contact
- [ ] remove-identity
-
[x] Have defaults for max initial block if no input is entered (https://gitlab.com/mukn/glow/-/merge_requests/177):
Max initial block [ Current block number is 2475 ] > Glow 0.3.0 on Gerbil-ethereum v0.0-344-g266204c, Gerbil-persist v0.0-19-g75d4c45, Gerbil-crypto v0.0-16-g4c7c4a8, Gerbil-poo v0.0-96-g8ab28ef, Gerbil-utils v0.2-134-g124e025, Gerbil v0.16-192-gfa9537be, Gambit 4.9.3-1447-gc0753ff1 *** ERROR IN mukn/glow/cli/interaction#ask-max-initial-block -- type-error Nat [value: #f]
-
[ ] Prompt again if user does not enter a valid input, instead of erroring out. https://gitlab.com/mukn/glow/-/issues/219
-
[x] #402
-
[ ] Come up with a way to derive / share user databases, instead of requiring them to supply these explicitly e.g.
--database bob
. This will require refactoringgerbil-ethereum/tx-tracker#post-transaction
which callsopen-transaction
fromgerbil-persist
and thestart-interaction
entrypoint(s).
In GitLab by @kwanzknoel on Sep 10, 2021, 02:09
changed the description
In GitLab by @kwanzknoel on Sep 10, 2021, 02:13
changed the description
In GitLab by @kwanzknoel on Sep 10, 2021, 02:24
changed the description
In GitLab by @kwanzknoel on Sep 10, 2021, 02:26
changed the description
In GitLab by @kwanzknoel on Sep 10, 2021, 02:28
changed the description
In GitLab by @kwanzknoel on Sep 11, 2021, 02:26
changed the description
In GitLab by @kwanzknoel on Sep 11, 2021, 02:47
changed the description
In GitLab by @kwanzknoel on Sep 11, 2021, 03:14
changed the description
In GitLab by @kwanzknoel on Sep 11, 2021, 03:14
changed the description
In GitLab by @kwanzknoel on Sep 16, 2021, 01:23
marked the task Have defaults for max initial block if no input is entered (https://gitlab.com/mukn/glow/-/merge_requests/177): as completed
In GitLab by @kwanzknoel on Sep 16, 2021, 02:37
changed the description
In GitLab by @kwanzknoel on Sep 16, 2021, 02:38
changed the description
In GitLab by @kwanzknoel on Sep 16, 2021, 03:06
changed the description
In GitLab by @kwanzknoel on Sep 17, 2021, 03:46
mentioned in merge request !178
In GitLab by @kwanzknoel on Sep 17, 2021, 03:47
changed the description
In GitLab by @kwanzknoel on Sep 17, 2021, 03:47
changed the description
In GitLab by @kwanzknoel on Sep 17, 2021, 23:03
- Add context to define-entrypoint so user knows exactly where they went wrong.
- So we can also introspect the options within define-entrypoint
In GitLab by @kwanzknoel on Sep 18, 2021, 03:36
assigned to @kwanzknoel
In GitLab by @kwanzknoel on Sep 18, 2021, 04:15
changed the description