Skip to content

Commit 1bf8a53

Browse files
committed
Add export deprecation message.
1 parent 10a7ff1 commit 1bf8a53

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

commands/export/export.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ var exportCmd = &cobra.Command{
7070

7171
return nil
7272
},
73+
PreRun: func(cmd *cobra.Command, args []string) {
74+
logrus.Warn("The export functionality has been deprecated. Please transition to using DevNets.")
75+
},
7376
Run: func(cmd *cobra.Command, args []string) {
7477

7578
network = getExportNetwork()

commands/export/init.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ func init() {
1818
var initCmd = &cobra.Command{
1919
Use: "init",
2020
Short: "Export init is a helper subcommand for creating exported network configuration",
21+
PreRun: func(cmd *cobra.Command, args []string) {
22+
logrus.Warn("The export functionality has been deprecated. Please transition to using DevNets.")
23+
},
2124
Run: func(cmd *cobra.Command, args []string) {
2225
commands.CheckLogin()
2326

0 commit comments

Comments
 (0)