mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
28 lines
796 B
Go
28 lines
796 B
Go
// Copyright (C) 2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
package blockchaincmd
|
|
|
|
import (
|
|
"github.com/luxfi/cli/v2/pkg/cobrautils"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// lux blockchain import
|
|
func newImportCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "import",
|
|
Short: "Import blockchains into lux-cli",
|
|
Long: `Import blockchain configurations into lux-cli.
|
|
|
|
This command suite supports importing from a file created on another computer,
|
|
or importing from blockchains running public networks
|
|
(e.g. created manually or with the deprecated subnet-cli)`,
|
|
RunE: cobrautils.CommandSuiteUsage,
|
|
}
|
|
// blockchain import file
|
|
cmd.AddCommand(newImportFileCmd())
|
|
// blockchain import public
|
|
cmd.AddCommand(newImportPublicCmd())
|
|
return cmd
|
|
}
|