Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is the crofty CLI version and the single source the rest of the code reads. Releases inject the git tag at build time: wharfy builds with -ldflags "-X main.version=…", and main() copies that into Version (see main.go). Plain `go build` from source leaves it as "dev".
Functions ¶
Types ¶
type Deployer ¶
type Deployer interface {
// Deploy uploads everything under distDir to the destination. progress
// receives short human-readable lines so the caller can print them. It
// returns the site's live URL when the provider knows it ("" when it can't —
// e.g. an SFTP/FTPS host whose public URL depends on the owner's domain).
Deploy(distDir string, progress func(string)) (url string, err error)
}
A Deployer publishes a built dist/ to one destination. Each deploy provider (Cloudflare Pages, SFTP, FTPS) implements it, so deploy.go can dispatch on the configured provider without knowing the wire details. The build and output- contract steps run once, before any Deployer is constructed — a Deployer only uploads an already-verified dist/.
Source Files
¶
- account.go
- add.go
- agent.go
- agents_guide.go
- analytics.go
- analytics_setup.go
- build.go
- cfdeploy.go
- cloudflare.go
- config.go
- configure.go
- credit.go
- deploy.go
- deployer.go
- doctor.go
- features.go
- fragment.go
- ftpsdeploy.go
- hints.go
- init.go
- lang.go
- preview.go
- root.go
- serverdeploy.go
- sftpdeploy.go
- share.go
- stubs.go
- theme.go
- update.go
- validate.go
Click to show internal directories.
Click to hide internal directories.