-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
refs
commented
Feb 4, 2020
- micro store interface does not really match our needs so we defined our own
- accounts service definition in protobuf
- micro cli@v2
func Server() cli.Command { | ||
return cli.Command{ | ||
func Server(cfg *config.Config) *cli.Command { | ||
baseDir, _ := filepath.Abs(filepath.Dir(os.Args[0])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PLEASE NEVER do such a stupid default, it should be NEVER in the same dir as the binary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, not happy about this one. What would you set as a default location that works in different OS? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This depends on the user AND the os. Not sure if a default is that great at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually no default is better, since different implementations might not care about this path.