Documentation
¶
Index ¶
- Constants
- func Write(s *Spec, file string, force bool) error
- type App
- func AWS() App
- func Alacritty() App
- func Azure() App
- func Bartender() App
- func Bash() App
- func Bat() App
- func Docker() App
- func Ghostty() App
- func Git() App
- func GnuPG() App
- func Homebrew() App
- func Hyper() App
- func Istat() App
- func Kubectl() App
- func List() []App
- func MacOS() App
- func Magnet() App
- func Mail() App
- func Nano() App
- func Ngrok() App
- func Npm() App
- func Raycast() App
- func SSH() App
- func Terminal() App
- func Tmux() App
- func VSCode() App
- func Wget() App
- func Zed() App
- func Zsh() App
- type Excludes
- type Files
- type Includes
- type Provider
- type Spec
Constants ¶
View Source
const ( // DefaultDirectory is the default directory for the configuration file. DefaultDirectory = "csync" // DefaultPath is the default path for the configuration file. DefaultPath = ".csync" // DefaultFilename is the default filename for the configuration file. DefaultFilename = ".csync.yml" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
App is the configuration for the app.
func Zed ¶ added in v0.5.15
func Zed() App
Zed is the configuration for the Zed Editor. See: https://github.com/zed-industries/zed
type Provider ¶
type Provider struct {
// Name ...
Name string `validate:"required" yaml:"name"`
// Pathh ...
Path string `yaml:"path"`
// Directory ...
Directory string `yaml:"directory"`
}
Provider is the configuration for the file provider. This provider does support local, file-based storages.
type Spec ¶
type Spec struct {
// Version is the version of the configuration file.
Version int `yaml:"version" validate:"required,eq=1"`
// Path is the path to the configuration file.
Path string `yaml:"path,omitempty"`
// Provider is the configuration for the provider.
Provider Provider `validate:"required" yaml:"provider"`
// Apps is a list of apps to sync.
Apps []App `yaml:"apps,omitempty"`
// Includes is a list of apps to include.
Includes []string `yaml:"includes,omitempty" validate:"required_with=Excludes"`
// Excludes is a list of apps to exclude.
Excludes []string `yaml:"excludes,omitempty" validate:"required_with=Includes"`
// Stderr is the standard error output.
Stderr bool `yaml:"stderr,omitempty"`
// Stdout is the standard output.
Stdout bool `yaml:"stdout,omitempty"`
// FailOnMissing is the flag to fail on missing files.
FailOnMissing bool `yaml:"fail_on_missing,omitempty"`
sync.Mutex `yaml:"-"`
}
Spec is the configuration file for `csync`.
func (*Spec) GetVersion ¶
GetVersion returns the version of the configuration file.
func (*Spec) UnmarshalYAML ¶
UnmarshalYAML overrides the default unmarshaler for the spec.
Click to show internal directories.
Click to hide internal directories.