CLI: Add account list command

This commit is contained in:
Jason Wilder
2015-02-15 13:36:10 -07:00
parent f6c07fdabd
commit ca37b24455
4 changed files with 58 additions and 1 deletions
+5
View File
@@ -14,6 +14,11 @@ func init() {
bus.AddHandler("sql", SetUsingAccount)
bus.AddHandler("sql", UpdateAccount)
bus.AddHandler("sql", GetAccountByName)
bus.AddHandler("sql", GetAccountsQuery)
}
func GetAccountsQuery(query *m.GetAccountsQuery) error {
return x.Find(&query.Result)
}
func GetAccountById(query *m.GetAccountByIdQuery) error {