From 1bf8a53675436ed2f6bbfdb9aa9c51fe03da311e Mon Sep 17 00:00:00 2001 From: "nebojsa.urosevic" Date: Fri, 4 Aug 2023 14:00:14 +0200 Subject: [PATCH] Add export deprecation message. --- commands/export/export.go | 3 +++ commands/export/init.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/commands/export/export.go b/commands/export/export.go index 4fc23c7..ea6a214 100644 --- a/commands/export/export.go +++ b/commands/export/export.go @@ -70,6 +70,9 @@ var exportCmd = &cobra.Command{ return nil }, + PreRun: func(cmd *cobra.Command, args []string) { + logrus.Warn("The export functionality has been deprecated. Please transition to using DevNets.") + }, Run: func(cmd *cobra.Command, args []string) { network = getExportNetwork() diff --git a/commands/export/init.go b/commands/export/init.go index b6744c1..230d055 100644 --- a/commands/export/init.go +++ b/commands/export/init.go @@ -18,6 +18,9 @@ func init() { var initCmd = &cobra.Command{ Use: "init", Short: "Export init is a helper subcommand for creating exported network configuration", + PreRun: func(cmd *cobra.Command, args []string) { + logrus.Warn("The export functionality has been deprecated. Please transition to using DevNets.") + }, Run: func(cmd *cobra.Command, args []string) { commands.CheckLogin()