initFiles creates, if necessary, the dnote directory and files inside
(ctx context.DnoteCtx, apiEndpoint string)
| 360 | |
| 361 | // initFiles creates, if necessary, the dnote directory and files inside |
| 362 | func initFiles(ctx context.DnoteCtx, apiEndpoint string) error { |
| 363 | if err := context.InitDnoteDirs(ctx.Paths); err != nil { |
| 364 | return errors.Wrap(err, "creating the dnote dir") |
| 365 | } |
| 366 | if err := initConfigFile(ctx, apiEndpoint); err != nil { |
| 367 | return errors.Wrap(err, "generating the config file") |
| 368 | } |
| 369 | |
| 370 | return nil |
| 371 | } |
no test coverage detected