Files

31 lines
682 B
Go

// Copyright (C) 2024, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package l3cmd
import (
"github.com/luxfi/cli/v2/pkg/ux"
"github.com/spf13/cobra"
)
func newDeployCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "deploy [l3Name]",
Short: "Deploy an L3 to its base L2",
Args: cobra.ExactArgs(1),
RunE: deployL3,
}
return cmd
}
func deployL3(cmd *cobra.Command, args []string) error {
l3Name := args[0]
ux.Logger.PrintToUser("🚀 Deploying L3: %s", l3Name)
ux.Logger.PrintToUser("==================")
// TODO: Implement L3 deployment logic
ux.Logger.PrintToUser("✅ L3 deployment initiated")
return nil
}