textileio / go-textile

[DEPRECATED] Textile is a set of tools and infrastructure for building composable apps and services on the IPFS network
https://textile.io
MIT License
357 stars 43 forks source link

Support the old style repo config #917

Closed asutula closed 5 years ago

asutula commented 5 years ago

Along side new account-scoped repo directories, we can let the docker files and library users continue to specify repo if they chose. This will buy us some time to get the account scoped repos api correct and complete.

The only change is there is no default behavior if you don't specify repo path OR base repo path and account... you have to supply one or the other. This is to avoid likely errors that will in happen in practice if there is a default behavior.

asutula commented 5 years ago

Ok @sanderpick this could be g2g. Give it a look.

asutula commented 5 years ago

Oh, another thing... For the cli, I ended up providing a default behavior if you don't specify a repo or base repo/account. In that case, for initialize, migrate and daemon it defaults to the ~/.textile/repo location. I chose to go that way because so many docs already assume that behavior and it will continue to work the way most existing users are used to.