initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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 {
|
||||
}
|
||||
Reference in New Issue
Block a user