77"os"
88
99"github.com/MakeNowJust/heredoc"
10- "github.com/raystack/salt/printer"
11- "github.com/raystack/salt/term"
10+ "github.com/raystack/salt/cli/printer"
1211stencilv1beta1"github.com/raystack/stencil/proto/raystack/stencil/v1beta1"
1312"github.com/spf13/cobra"
1413"google.golang.org/grpc/codes"
@@ -52,7 +51,7 @@ func createSchemaCmd(cdk *CDK) *cobra.Command {
5251if err != nil {
5352errStatus := status .Convert (err )
5453if codes .AlreadyExists == errStatus .Code () {
55- fmt .Printf ("\n %s Schema with id '%s' already exist.\n " ,term . FailureIcon ( ),args [0 ])
54+ fmt .Printf ("\n %s Schema with id '%s' already exist.\n " ,printer . Icon ( "failure" ),args [0 ])
5655return nil
5756}
5857return errors .New (errStatus .Message ())
@@ -61,7 +60,7 @@ func createSchemaCmd(cdk *CDK) *cobra.Command {
6160id := res .GetId ()
6261
6362spinner .Stop ()
64- fmt .Printf ("\n %s Created schema with id %s.\n " ,term .Green (term . SuccessIcon ( )),term .Cyan (id ))
63+ fmt .Printf ("\n %s Created schema with id %s.\n " ,printer .Green (printer . Icon ( "success" )),printer .Cyan (id ))
6564return nil
6665},
6766}