utils

package
v0.0.0-...-a996bd0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SkipDir = errors.Errorf("walk: skipping")

semi-todo make shell implement http.FileSystem then we can reuse filepath.Walk and make a lot of other stuff simpler

Functions

func Interrupt

func Interrupt() error

c chan os.Signal

func Walk

func Walk(app *App, root string, walkFn WalkFunc) error

Types

type App

type App struct {
	IPFS_URL string

	IpfsRepoPath  string
	ThisGitRepo   string
	ThisGitRemote string
	// contains filtered or unexported fields
}

func GetApp

func GetApp() *App

func (*App) SpeakGit

func (app *App) SpeakGit(r io.Reader, w io.Writer) error

speakGit acts like a git-remote-helper see this for more: https://www.kernel.org/pub/software/scm/git/docs/gitremote-helpers.html

type WalkFunc

type WalkFunc func(path string, info *shell.LsLink, err error) error

Jump to

Keyboard shortcuts

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