Skip to content

Commit 379ad74

Browse files
laurensiusadigr2m
authored andcommitted
fix: pass options.account and options.store (#880)
1 parent e72dcb9 commit 379ad74

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

cli/hoodie-defaults.js

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ function getHoodieDefaults () {
88
data: '.hoodie',
99
public: 'public',
1010
client: {},
11+
account: {},
12+
store: {},
1113
dbUrl: undefined,
1214
dbUrlPassword: undefined,
1315
dbUrlUsername: undefined,

cli/options.js

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ function getCliOptions (projectPath) {
127127
options.plugins = defaults.plugins
128128
options.app = defaults.app
129129
options.client = defaults.client
130+
options.account = defaults.account
131+
options.store = defaults.store
130132

131133
// If app has a hoodie folder, add it to the list of plugins
132134
if (fs.existsSync(path.join(projectPath, 'hoodie'))) {

cli/parse-options.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ function parseOptions (options) {
3939
plugins: options.plugins,
4040
app: options.app,
4141
inMemory: Boolean(options.inMemory),
42-
client: options.client
42+
client: options.client,
43+
account: options.account,
44+
store: options.store
4345
}
4446

4547
log.level = config.loglevel

test/unit/cli/hoodie-default-test.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ test('hoodie defaults test', function (group) {
1010
adminPassword: undefined,
1111
app: {},
1212
client: {},
13+
account: {},
14+
store: {},
1315
data: '.hoodie',
1416
dbAdapter: 'pouchdb-adapter-fs',
1517
dbUrl: undefined,

0 commit comments

Comments
 (0)