mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 06:09:17 +00:00
init machined cli
This commit is contained in:
1 parent
c99cdcd95f
commit
b4606b939b
9 files changed
+167
No files matched your search
@@ -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