func ConfigPath(
	ctx context.Context,
) (*string, error) {
	path, err := homedir.Expand(
		"~/.warp/config.json",
	)
	if err != nil {
		return nil, errors.Trace(err)
	}
	err = os.MkdirAll(filepath.Dir(path), 0777)
	if err != nil {
		return nil, errors.Trace(err)
	}
	return &path, nil
}
ConfigPath returns the crendentials path for the current environment.
package cli
import (
	"context"
	"encoding/json"
	"io/ioutil"
	"os"
	"path/filepath"
	homedir "github.com/mitchellh/go-homedir"
	"github.com/spolu/warp/lib/errors"
	"github.com/spolu/warp/lib/token"
)
type Credentials struct {
	User   string `json:"user"`
	Secret string `json:"secret"`
}
type Config struct {
	Credentials Credentials `json:"credentials"`
}