23 lines
375 B
Go
23 lines
375 B
Go
package engine
|
|
|
|
import "fmt"
|
|
|
|
type JadeDepo struct {
|
|
Config *Config
|
|
}
|
|
|
|
func Init(cfgPath, depoPath string) (*JadeDepo, error) {
|
|
cfg, err := initConfig(cfgPath, depoPath)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("failed to initialize config: %w", err)
|
|
}
|
|
|
|
return &JadeDepo{
|
|
Config: cfg,
|
|
}, nil
|
|
}
|
|
|
|
// AddNote creates a new note in the depository
|
|
func AddNote() Note {
|
|
}
|