pkg

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

pkg/hello.go

pkg/hello.go

pkg/hello.go

pkg/hello.go

pkg/hello.go

pkg/hello.go

pkg/hello.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptToSha1

func EncryptToSha1(content string) string

func RunClone

func RunClone(cli cli.Cli, assignmentId string) error

func RunCommit

func RunCommit(cli cli.Cli, repoId, message string) error

func RunJoin

func RunJoin(cli cli.Cli, inviteCode string, autoClone bool) error

func RunLogin

func RunLogin(cli cli.Cli, email, password string) error

func RunLogout

func RunLogout(cli cli.Cli) error

func RunPush

func RunPush(cli cli.Cli) (*gas.Submission, error)

func RunStage

func RunStage(cli cli.Cli, repoId string, args []string) error

func RunStatus

func RunStatus(cli cli.Cli) error

func RunUnstage

func RunUnstage(cli cli.Cli, args []string) error

Types

type File

type File struct {
	Path     string      `json:"path"`
	Content  string      `json:"content"`
	Mode     fs.FileMode `json:"mode"`
	ModeTime string      `json:"modeTime"`
	CTime    string      `json:"cTime"`
}

type LocalFileInfo

type LocalFileInfo struct {
	Path string
	Sha1 string // Content of the file, if available
}

func GetAllLocalFiles

func GetAllLocalFiles(dirPath string) ([]LocalFileInfo, error)

Jump to

Keyboard shortcuts

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