func newRootCmd() *cobra.Command {
	rootCmd := &cobra.Command{
		Use:                "gist",
		Short:              "A simple gist editor for CLI",
		SilenceErrors:      true,
		DisableSuggestions: false,
		Version:            fmt.Sprintf("%s (%s/%s)", Version, BuildTag, BuildSHA),
	}
	rootCmd.AddCommand(newNewCmd())
	rootCmd.AddCommand(newEditCmd())
	rootCmd.AddCommand(newOpenCmd())
	rootCmd.AddCommand(newDeleteCmd())
	return rootCmd
}
newRootCmd returns the root command
package cmd
import (
	"fmt"
	"log"
	"os"
	"runtime"
	clilog "github.com/b4b4r07/go-cli-log"
	"github.com/spf13/cobra"
)
var (
	Version = "unset"
	BuildTag = "unset"
	BuildSHA = "unset"
)