Display account ID in verbose mode when it is looked up
authorMikael Berthe <mikael@lilotux.net>
Sat, 29 Apr 2017 17:20:19 +0200
changeset 29 4f12e5d4ef75
parent 28 79aa812c0dd2
child 30 14561d44211b
Display account ID in verbose mode when it is looked up Also, remove unused README from the cmd directory.
cmd/README.md
cmd/accounts.go
--- a/cmd/README.md	Sat Apr 29 13:54:04 2017 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-# madonctl
-
-Golang command line interface for the Mastodon API
-
-[![license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/McKael/madonctl/master/LICENSE)
-
-`madonctl` is a [Go](https://golang.org/) CLI tool to use the Mastondon REST API.
-
-## Installation
-
-To install the application (you need to have Go):
-
-    go get github.com/McKael/madonctl
-
-Some pre-built binaries are available on the home page (see below).
-
-## Usage
-
-This section has not been written yet.
-
-Please check the [Homepage](https://lilotux.net/~mikael/pub/madonctl/) for an
-introduction and a few examples.
-
-## References
-
-- [madon](https://github.com/McKael/madon), the Go library for Mastodon API
-- [Mastodon API documentation](https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md)
-- [Mastodon repository](https://github.com/tootsuite/mastodon)
--- a/cmd/accounts.go	Sat Apr 29 13:54:04 2017 +0200
+++ b/cmd/accounts.go	Sat Apr 29 17:20:19 2017 +0200
@@ -332,6 +332,9 @@
 				return err
 			}
 			opt.accountID = account.ID
+			if verbose {
+				errPrint("User account ID: %d", opt.accountID)
+			}
 		}
 	default:
 		// The other subcommands here require an account ID