func NewSecretsGroupCommand() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "secrets",
		Short: `Create secret files from Hashicorp Vault or Azure Key Vault`,
		Example: `	
secrets connect vault --role lenses --token XYZ	
secrets connect azure --client-id xxxx --client-secret xxxx --tenant-id xxxxx
secrets app vault --role lenses --token XYZ	--output json --secret-file my-secrets.json
secrets app azure --client-id xxxx --client-secret xxxx --tenant-id xxxxx --output env
		`,
		SilenceErrors:    true,
		TraverseChildren: true,
	}
	cmd.AddCommand(NewConnectGroupCommand())
	cmd.AddCommand(NewAppGroupCommand())
	return cmd
}
NewSecretsGroupCommand creates `secrets` command
package secret
import (
	"encoding/json"
	"errors"
	"fmt"
	"os"
	"strings"
	azure "github.com/Azure/go-autorest/autorest/azure"
	golog "github.com/kataras/golog"
	"github.com/lensesio/lenses-go/pkg/utils"
	cobra "github.com/spf13/cobra"
	"gopkg.in/yaml.v2"
)
var output, role, endpoint, token, fromFile, secretsFile, appSecretsFile, connectorFile, workerFile string