Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ProjectPath string
ProjectPath represents the full path for the current project. TODO: This shouldn't really be stored here - just for now.
Functions ¶
func MakeHttpuDir ¶
func MakeHttpuDir() error
MakeHttpuDir creates the ~/.httpu directory if it does not yet exists.
func PackagesExists ¶
func PackagesExists() bool
PackagesExists checks to see if the packages directory within the .httpu directory exists.
Types ¶
type GitCommand ¶
type GitCommand struct {
// contains filtered or unexported fields
}
GitCommand represents a new instance of a base git command.
func NewGitCommand ¶
func NewGitCommand() GitCommand
NewGitCommand returns a new base git command which is then used to perform various git operations such as cloning and pulling.
func (*GitCommand) Clone ¶
func (gc *GitCommand) Clone() error
Clone will `git clone` the canonical packages repo to ~/.httpu/packages so that the user can access public packages / projects that are stored there.
func (*GitCommand) Pull ¶
func (gc *GitCommand) Pull() error
Pull will `git pull` the latest updates from the packages repo to keep the user's local version up to date.