common

package
v0.0.0-...-01c0eb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2018 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 HomeDir

func HomeDir() (string, error)

HomeDir gets the user's home directory.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL