Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 committed Jun 12, 2024
1 parent bc01abe commit bc66559
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions core/cmd/shell_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ var ErrProfileTooLong = errors.New("requested profile duration too large")

func initLocalSubCmds(s *Shell, safe bool) []cli.Command {
return []cli.Command{
{
Name: "setup",
Flags: []cli.Flag{
//TODO password and vrfpassword?
},
Usage: "Setup a Chainlink node",
Action: s.Setup,
},
{
Name: "start",
Aliases: []string{"node", "n"},
Expand Down Expand Up @@ -277,6 +285,21 @@ func initLocalSubCmds(s *Shell, safe bool) []cli.Command {
// ownerPermsMask are the file permission bits reserved for owner.
const ownerPermsMask = os.FileMode(0o700)

// Setup Chainlink core.
func (s *Shell) Setup(c *cli.Context) error {
ctx := s.ctx()
ctx := s.ctx()
lggr := logger.Sugared(s.Logger.Named("Setup"))

//TODO password flags?

//TODO secrets?

//TODO imports too?

//TODO do the init
}

// RunNode starts the Chainlink core.
func (s *Shell) RunNode(c *cli.Context) error {
if err := s.runNode(c); err != nil {
Expand Down

0 comments on commit bc66559

Please sign in to comment.