need this
This commit is contained in:
@@ -23,13 +23,13 @@ func New(ctx context.Context, config Config, opts ...Option) (*App, func(), erro
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !config.AutoInit {
|
if !config.AutoInit {
|
||||||
if err := b.initializer.Init(config.AppDir + "/db.db"); err != nil {
|
if err := b.initializer.Init(config.AppDir + "db.db"); err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if b.issueService == nil {
|
if b.issueService == nil {
|
||||||
sqliteStore, err := beads.NewSQLiteStorage(b.ctx, config.AppDir+"/db.db")
|
sqliteStore, err := beads.NewSQLiteStorage(b.ctx, config.AppDir+"db.db")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ var BaseConfig = Config{
|
|||||||
RootCmd: "pm",
|
RootCmd: "pm",
|
||||||
IssuePrefix: "pm",
|
IssuePrefix: "pm",
|
||||||
WebAddress: ":8080",
|
WebAddress: ":8080",
|
||||||
AppDir: "./.pm",
|
AppDir: "./.pm/",
|
||||||
StatisticsStoragePath: "./.pm/stats.json",
|
StatisticsStoragePath: "./.pm/stats.json",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user