mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-28 12:03:33 +00:00
init machined cli
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package daemon
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func Run(dataDir string) error {
|
||||
cfg, err := ReadConfig(filepath.Join(dataDir, MachineConfigPath))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println("Config", cfg)
|
||||
|
||||
return errors.New("Running daemon...")
|
||||
}
|
||||
Reference in New Issue
Block a user