github.com/pluralsh/plural-cli@v0.9.5/pkg/wkspace/readme.go (about)

     1  package wkspace
     2  
     3  import (
     4  	"path/filepath"
     5  
     6  	"github.com/pluralsh/plural-cli/pkg/utils"
     7  	"github.com/pluralsh/plural-cli/pkg/utils/git"
     8  )
     9  
    10  const (
    11  	readmeUrl = "https://raw.githubusercontent.com/pluralsh/documentation/main/cli-readme/README.md"
    12  )
    13  
    14  func DownloadReadme() error {
    15  	repoRoot, err := git.Root()
    16  	if err != nil {
    17  		return err
    18  	}
    19  
    20  	return utils.DownloadFile(filepath.Join(repoRoot, "README.md"), readmeUrl)
    21  }