modulepackage
0.0.0-20190201225821-ff30dd2f57cc
Repository: https://github.com/gofunct/gofs.git
Documentation: pkg.go.dev
# Functions
AddHeader prepends header to each asset's buffer unless it is already prefixed with the header.
Bash executes a bash script (string).
BashOutput executes a bash script and returns the output.
Cat concatenates all assets with a join string.
No description provided by the author
copyTemplates copies templates files from source to destination directory.
EditFile edits the file using f and saves it.
No description provided by the author
EffectiveEnv is the effective environment for an exec function.
FileExists determines if path exists.
FindUp finds a path up the tree.
Getenv environment variable from a string array.
GetWatchDelay gets the watch delay.
GoThrottle starts to run the given list of fns concurrently, at most n fns at a time.
Halt is a soft panic and stops a task.
Inside temporarily changes the working directory and restores it when lambda finishes.
Load loads all the files from glob patterns and creates the initial asset array for a pipeline.
NewTask creates a new Task.
No description provided by the author
NewProject creates am empty project ready for tasks.
PackageName determines the package name from sourceFile if it is within $GOPATH.
ParseStringEnv parse the package Env string and converts it into an environment slice.
PartitionKV partitions a reader then parses key-value meta using an assignment string.
No description provided by the author
No description provided by the author
Prompt prompts user for input with default value.
PromptPassword prompts user for password input.
No description provided by the author
No description provided by the author
ReplacePath replaces the leading part of a path in all assets.
ReplacePattern replaces the leading part of a path in all assets.
Run runs a command.
RunOutput runs a command and returns output.
SetEnviron sets the environment for child processes.
SetWatchDelay sets the time duration between watches.
No description provided by the author
No description provided by the author
Start starts an async command.
Stencil runs a project of tasks.
Str passes asset.Buffer string through any `str` filter for processing.
StripPackageCommentsForFile strips the package comments for a file.
StrTemplate reads a go template and writes it to dist given data.
Template reads a go template and writes it to dist given data.
Trace traces an asset, printing key properties of asset to the console.
Usage prints a usage screen with task descriptions.
Write writes all assets to the file system.
# Constants
CaptureBoth captures STDOUT and STDERR.
CaptureStderr is a bitmask to capture STDERR.
CaptureStdout is a bitmask to capture STDOUT.
No description provided by the author
# Variables
DefaultDecoders contains the default list of decoders per MIME type.
DefaultEncoders contains the default list of encoders per MIME type.
Env is the default environment to use for all commands.
InheritParentEnv whether to inherit parent's environment.
PathListSeparator is a cross-platform path list separator.
Processes are the processes spawned by Start().
No description provided by the author
Verbose indicates whether to log verbosely.
Version is the current version.
WaitMs is the default time (1500 ms) to debounce task events in watch mode.
# Structs
Context is the data passed to a task.
No description provided by the author
A Task is an operation performed on a user's project directory.
No description provided by the author
Message are sent on the Events channel.
No description provided by the author
Project is a container for tasks.
No description provided by the author
WaitGroupN is a custom wait group that tracks the number added so it can be stopped.
# Interfaces
No description provided by the author
No description provided by the author
Dependency marks an interface as a dependency.
No description provided by the author
No description provided by the author
Handler is the interface which all task handlers eventually implement.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HandlerFunc is a Handler adapter.
M is generic string to interface alias.
P is alias for Parallel.
Parallel runs jobs in parallel.
S is alias for Series.
Series are dependent jobs which must run in series.