From bc665595062e3fc9f6ac6e8406e2d6fe3c072e0c Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Mon, 20 May 2024 10:56:53 -0500 Subject: [PATCH] WIP --- core/cmd/shell_local.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/core/cmd/shell_local.go b/core/cmd/shell_local.go index 780105d9868..8e9b3f405aa 100644 --- a/core/cmd/shell_local.go +++ b/core/cmd/shell_local.go @@ -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"}, @@ -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 {