updated readme

This commit is contained in:
Vishal 2022-08-27 13:25:39 +05:30
parent f2828fb631
commit 94ef7d5ed1

View File

@ -3,7 +3,7 @@ Nostr console client using Dart
# Use # Use
Easiest way to run nostr_console: Go to [releases](https://github.com/vishalxl/nostr_console/releases) and get an executable for your platform from the latest release. Easiest way to run nostr_console: Go to releases and get an executable for your platform.
Otherwise do following: Otherwise do following:
1. Install [Flutter](https://docs.flutter.dev/get-started/install) SDK, or [Dart](https://dart.dev/get-dart) SDK 1. Install [Flutter](https://docs.flutter.dev/get-started/install) SDK, or [Dart](https://dart.dev/get-dart) SDK
@ -19,27 +19,29 @@ usage: dart run bin/nostr_console.dart [OPTIONS]
OPTIONS OPTIONS
--pubkey <public key> The hex public key of user whose events and feed are shown. Default is a hard-coded -p, --pubkey <public key> The hex public key of user whose events and feed are shown. Default is a hard-coded
well known private key. When given, posts/replies can't be sent. Same as -p well known private key. When given, posts/replies can't be sent.
--prikey <private key> The hex private key of user whose events and feed are shown. Also used to sign events -k, --prikey <private key> The hex private key of user whose events and feed are shown. Also used to sign events
sent. Default is a hard-coded well known private key. Same as -k sent. Default is a hard-coded well known private key.
--relay <relay wss url> The relay url that is used as main relay. Default is wss://nostr-relay.untethr.me. Same as -r -r, --relay <relay wss url> The relay url that is used as main relay. Default is wss://nostr-relay.untethr.me.
--days <N as num> The latest number of days for which events are shown. Default is 1. Same as -d -d, --days <N as num> The latest number of days for which events are shown. Default is 1.
--request <REQ string> This request is sent verbatim to the default relay. It can be used to recieve all events -q, --request <REQ string> This request is sent verbatim to the default relay. It can be used to recieve all events
from a relay. If not provided, then events for default or given user are shown. Same as -q from a relay. If not provided, then events for default or given user are shown.
--file <filename> Read from given file, if it is present, and at the end of the program execution, write -f, --file <filename> Read from given file, if it is present, and at the end of the program execution, write
to it all the events (including the ones read, and any new received). Same as -f to it all the events (including the ones read, and any new received).
--translate This flag, if present, will make the application translate some of the recent posts using -n, --disable-file When turned on, even the default filename is not read from.
google translate. Same as -t -t, --translate This flag, if present, will make the application translate some of the recent posts using
google translate.
UI Options UI Options
--align <left> When "left" is given as option to this argument, then the text is aligned to left. By default -a, --align <left> When "left" is given as option to this argument, then the text is aligned to left. By default
the posts or text is aligned to the center of the terminal. Same as -a the posts or text is aligned to the center of the terminal.
--width <width as num> This specifies how wide you want the text to be, in number of columns. Default is 120. -w, --width <width as num> This specifies how wide you want the text to be, in number of columns. Default is 120.
Cant be less than 60. Same as -w Cant be less than 60.
--maxdepth <depth as num> The maximum depth to which the threads can be displayed. Minimum is 2 and -m, --maxdepth <depth as num> The maximum depth to which the threads can be displayed. Minimum is 2 and
maximum allowed is 12. Same as -m maximum allowed is 12.
--help Print this usage message and exit. Same as -h -c, --color <color> Color option can be green, cyan, white, black, red and blue.
-h, --help Print this usage message and exit.
``` ```