Move to Cobra for CLI

This commit is contained in:
Andrew-71 2024-10-13 16:16:19 +03:00
parent 452048359a
commit 1f50b8621e
15 changed files with 230 additions and 155 deletions

View file

@ -1,8 +1,13 @@
package storage
// Storage is an arbitrary storage interface
type Storage interface {
AddUser(email, password string) error
ById(uuid string) (User, bool)
ByEmail(uuid string) (User, bool)
EmailExists(email string) bool
}
// Data stores active information for the app
// It should be populated at app startup
var Data Storage