cd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cd holds the command for changing directories to a git repo. it reads a target path from stdin and writes a cd script for that dir that can be sourced to cd the outer shell to the chosen dir.

since binaries run as a subprocess, this needs an alias like `xxx='gitdir cd && source script.sh' where, on selection, `cd /chosen/path` is written to script.sh by the binary

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func New added in v0.0.8

func New(ctx context.Context) *Command

func (*Command) Execute

func (c *Command) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

func (*Command) Name

func (c *Command) Name() string

func (*Command) SetFlags

func (c *Command) SetFlags(f *flag.FlagSet)

func (*Command) Synopsis

func (c *Command) Synopsis() string

func (*Command) Usage

func (c *Command) Usage() string

Jump to

Keyboard shortcuts

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