* Removing directstream shouldn't crash tut
* update version
* Ignore tut binary (#194)
When I do 'go build .' it yields a 'tut' file in the current directory
that's not currently ignored.
* Print error when failing to connect (#193)
When setting up, network errors wouldn't print any useful information:
Instance: bsd.network
Couldn't connect to instance: https://bsd.network
Try again or press ^C.
Now:
Instance: bsd.network
Couldn't connect to instance https://bsd.network:
Get "https://bsd.network/api/v1/instance": x509: certificate signed
by unknown authority
Try again or press ^C.
(Turns out I didn't have root certificates installed.)
* set config with flag and env
* list tags that you follow
* fix help
* update readme
* remove unused field
* user search and multiple tags
Co-authored-by: Sijmen J. Mulder <ik@sjmulder.nl>
log.Fatalln("--user/-u must be followed by a user name. Like -u tut")
}
case"--help","-h":
fmt.Print("tut - a TUI for Mastodon with vim inspired keys.\n\n")
fmt.Print("Usage:\n")
fmt.Print("\tTo run the program you just have to write tut\n\n")
fmt.Print("Commands:\n")
fmt.Print("\texample-config - creates the default configuration file in the current directory and names it ./config.example.ini\n\n")
fmt.Print("Flags:\n")
fmt.Print("\t--help -h - prints this message\n")
fmt.Print("\t--version -v - prints the version\n")
fmt.Print("\t--new-user -n - add one more user to tut\n")
fmt.Print("\t--user <name> -u <name> - login directly to user named <name>\n")
fmt.Print("\t\tDon't use a = between --user and the <name>\n")
fmt.Print("\t\tIf two users are named the same. Use full name like tut@fosstodon.org\n\n")
fmt.Print("Configuration:\n")
fmt.Printf("\tThe config is located in XDG_CONFIG_HOME/tut/config.ini which usually equals to ~/.config/tut/config.ini.\n")
fmt.Printf("\tThe program will generate the file the first time you run tut. The file has comments which exmplains what each configuration option does.\n\n")
fmt.Print("Contact info for issues or questions:\n")
fmt.Print("tut - a TUI for Mastodon with vim inspired keys.\n\n")
fmt.Print("Usage:\n")
fmt.Print("\tTo run the program you just have to write tut\n\n")
fmt.Print("Commands:\n")
fmt.Print("\texample-config - creates the default configuration file in the current directory and names it ./config.example.ini\n\n")
fmt.Print("Flags:\n")
fmt.Print("\t-h --help prints this message\n")
fmt.Print("\t-v --version prints the version\n")
fmt.Print("\t-n --new-user add one more user to tut\n")
fmt.Print("\t-c --config <path> load config.ini from <path>\n")
fmt.Print("\t-d --config-dir <path> load all config from <path>\n")
fmt.Print("\t-u --user <name> login directly to user named <name>\n")
fmt.Print("\t\tIf two users are named the same. Use full name like tut@fosstodon.org\n\n")
fmt.Print("Configuration:\n")
fmt.Printf("\tThe config is located in XDG_CONFIG_HOME/tut/config.ini which usually equals to ~/.config/tut/config.ini.\n")
fmt.Printf("\tThe program will generate the file the first time you run tut. The file has comments which exmplains what each configuration option does.\n\n")
fmt.Print("Contact info for issues or questions:\n")