Skip to content

Commit

Permalink
Add export deprecation message.
Browse files Browse the repository at this point in the history
  • Loading branch information
nebojsa94 committed Aug 4, 2023
1 parent 10a7ff1 commit 1bf8a53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/export/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions commands/export/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 1bf8a53

Please sign in to comment.