Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Better interfaces #1

Merged
merged 14 commits into from
Feb 4, 2020
Merged

Better interfaces #1

merged 14 commits into from
Feb 4, 2020

Conversation

refs
Copy link
Member

@refs 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

@refs refs merged commit ed8b266 into master Feb 4, 2020
@refs refs deleted the experiment/account-interface branch February 4, 2020 11:20
func Server() cli.Command {
return cli.Command{
func Server(cfg *config.Config) *cli.Command {
baseDir, _ := filepath.Abs(filepath.Dir(os.Args[0]))
Copy link

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.

Copy link
Member Author

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? 🤔

Copy link

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.

Copy link
Member Author

@refs refs Feb 4, 2020

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.

@micbar micbar mentioned this pull request Mar 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants