Skip to content

Commit

Permalink
Merge pull request #156 from Tenderly/export-deprecation-message
Browse files Browse the repository at this point in the history
Add export deprecation message.
  • Loading branch information
nebojsa94 authored Aug 4, 2023
2 parents 10a7ff1 + 1bf8a53 commit 43eda1e
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 43eda1e

Please sign in to comment.