MCPcopy
hub / github.com/writefreely/writefreely / NewApp

Function NewApp

app.go:630–634  ·  view source on GitHub ↗

NewApp creates a new app instance.

(cfgFile string)

Source from the content-addressed store, hash-verified

628
629// NewApp creates a new app instance.
630func NewApp(cfgFile string) *App {
631 return &App{
632 cfgFile: cfgFile,
633 }
634}
635
636// CreateConfig creates a default configuration and saves it to the app's cfgFile.
637func CreateConfig(app *App) error {

Callers 11

serveActionFunction · 0.92
genKeysActionFunction · 0.92
initDBActionFunction · 0.92
migrateDBActionFunction · 0.92
genConfigActionFunction · 0.92
interactiveConfigActionFunction · 0.92
addUserActionFunction · 0.92
delUserActionFunction · 0.92
resetPassActionFunction · 0.92
legacyActionsFunction · 0.92

Calls

no outgoing calls

Tested by 1