Skip to content

Commit

Permalink
feat: implemented output dev for format json not is compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwelbm committed Jul 8, 2024
1 parent 8875b3f commit b258753
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/cmd/dev/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/aziontech/azion-cli/pkg/contracts"
"github.com/aziontech/azion-cli/pkg/iostreams"
"github.com/aziontech/azion-cli/pkg/logger"
"github.com/aziontech/azion-cli/pkg/output"
"github.com/aziontech/azion-cli/utils"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -64,6 +65,15 @@ func NewCmd(f *cmdutil.Factory) *cobra.Command {
func (cmd *DevCmd) Run(f *cmdutil.Factory) error {
logger.Debug("Running dev command")

if len(cmd.F.Flags.Format) > 0 {
outGen := output.GeneralOutput{
Msg: "dev command is not compatible with the format flag",
Out: f.IOStreams.Out,
Flags: f.Flags,
}
return output.Print(&outGen)
}

contract := &contracts.BuildInfo{}

if isFirewall {
Expand Down

0 comments on commit b258753

Please sign in to comment.