Documentation ¶
Index ¶
- Variables
- func Absent(in interface{}, out output.Output) error
- func AddUserToGroup(in interface{}, out output.Output) error
- func Apt(in interface{}, out output.Output) error
- func AptAutoremovePurge(in interface{}, out output.Output) error
- func AptCleanCache(in interface{}, out output.Output) error
- func AptRemove(in interface{}, out output.Output) error
- func AptSource(in interface{}, out output.Output) error
- func AptUpgrade(in interface{}, out output.Output) error
- func Dconf(in interface{}, out output.Output) error
- func DebconfSet(in interface{}, out output.Output) error
- func Directory(in interface{}, out output.Output) error
- func DoNotMigrate(in interface{}, out output.Output) error
- func Download(in interface{}, out output.Output) error
- func Dpkg(in interface{}, out output.Output) error
- func DpkgDependencies(in interface{}, out output.Output) error
- func DpkgReconfigure(in interface{}, out output.Output) error
- func DpkgVersion(in interface{}, out output.Output) error
- func EnableGnomeShellExtension(in interface{}, out output.Output) error
- func ExecutableFile(in interface{}, out output.Output) error
- func ExecutableRootFile(in interface{}, out output.Output) error
- func ExtractTarxz(in interface{}, out output.Output) error
- func ExtractZip(in interface{}, out output.Output) error
- func File(in interface{}, out output.Output) error
- func Flatpak(in interface{}, out output.Output) error
- func FlatpakRemote(in interface{}, out output.Output) error
- func FontCache(in interface{}, out output.Output) error
- func ForceMigrate(in interface{}, out output.Output) error
- func ForceMove(in interface{}, out output.Output) error
- func GitCloneOrPull(in interface{}, out output.Output) error
- func GitConfig(in interface{}, out output.Output) error
- func GithubLatest(in interface{}, out output.Output) error
- func GnomeShellRestart(in interface{}, out output.Output) error
- func GoEnv(in interface{}, out output.Output) error
- func GoPackage(in interface{}, out output.Output) error
- func GtkBookmarks(in interface{}, out output.Output) error
- func HTTPGet(in interface{}, out output.Output) error
- func HTTPPost(in interface{}, out output.Output) error
- func InstallGnomeShellExtension(in interface{}, out output.Output) error
- func JSONBuild(in interface{}, out output.Output) error
- func JSONGet(in interface{}, out output.Output) error
- func LocalGnomeShellExtensionVersion(in interface{}, out output.Output) error
- func Migrate(in interface{}, out output.Output) error
- func MigrationSource(in interface{}, out output.Output) error
- func Move(in interface{}, out output.Output) error
- func NetworkManagerImport(in interface{}, out output.Output) error
- func NetworkManagerWifi(in interface{}, out output.Output) error
- func PIP(in interface{}, out output.Output) error
- func ParseWebPage(in interface{}, out output.Output) error
- func RegexpReplace(in interface{}, out output.Output) error
- func Register(name string, instruction Instruction)
- func RestrictedFile(in interface{}, out output.Output) error
- func RestrictedRootFile(in interface{}, out output.Output) error
- func RootDirectory(in interface{}, out output.Output) error
- func RootFile(in interface{}, out output.Output) error
- func Snap(in interface{}, out output.Output) error
- func SnapClassic(in interface{}, out output.Output) error
- func SnapDangerous(in interface{}, out output.Output) error
- func SnapEdge(in interface{}, out output.Output) error
- func SnapRefresh(in interface{}, out output.Output) error
- func SnapVersion(in interface{}, out output.Output) error
- func StopIfExist(in interface{}, out output.Output) error
- func StopIfOlder(in interface{}, out output.Output) error
- func SudoPassword(in interface{}, out output.Output) error
- func Symlink(in interface{}, out output.Output) error
- func SystemdDisable(in interface{}, out output.Output) error
- func SystemdEnable(in interface{}, out output.Output) error
- func UpdateAlternatives(in interface{}, out output.Output) error
- func VscodeExtension(in interface{}, out output.Output) error
- func VscodiumExtension(in interface{}, out output.Output) error
- func XdgAutostart(in interface{}, out output.Output) error
- func XdgMimeDefault(in interface{}, out output.Output) error
- func XdgUserDir(in interface{}, out output.Output) error
- type Instruction
Constants ¶
This section is empty.
Variables ¶
var Dryrun = false
Dryrun allows running instructions without system modification
Functions ¶
func AddUserToGroup ¶ added in v1.1.0
AddUserToGroup adds a user to a group
func AptAutoremovePurge ¶
AptAutoremovePurge cleans unneeded packages from the system
func AptCleanCache ¶
AptCleanCache remove archives .deb files from cache
func AptUpgrade ¶
AptUpgrade upgrades all packages in the system
func DebconfSet ¶
DebconfSet sets a debconf variable
func DoNotMigrate ¶
DoNotMigrate removes a file fro the previous home, without migrating it
func DpkgDependencies ¶
DpkgDependencies installs dependencies for a .deb package
func DpkgReconfigure ¶
DpkgReconfigure reconfigures a package interactively
func DpkgVersion ¶
DpkgVersion checks an installed deb package version
func EnableGnomeShellExtension ¶
EnableGnomeShellExtension enables GNOME Shell extensions
func ExecutableFile ¶
ExecutableFile creates or replaces files with executable flag
func ExecutableRootFile ¶
ExecutableRootFile creates or replaces executable files as root
func ExtractTarxz ¶
ExtractTarxz extracts a tar.xz archive
func ExtractZip ¶
ExtractZip extracts a zip archive
func FlatpakRemote ¶
FlatpakRemote adds a flatpak remote repository
func ForceMigrate ¶
ForceMigrate migrates a file or directory from the previous home, removing the destination if it exists
func GitCloneOrPull ¶
GitCloneOrPull clones a Git repository, with depth 1, or pulls latest commit if it already exists
func GithubLatest ¶
GithubLatest checks latest release of a GitHub repository
func GnomeShellRestart ¶
GnomeShellRestart restarts GNOME Shell
func GtkBookmarks ¶
GtkBookmarks sets the Gtk bookmarks
func InstallGnomeShellExtension ¶
InstallGnomeShellExtension installs GNOME Shell extensions from extensions.gnome.org
func LocalGnomeShellExtensionVersion ¶
LocalGnomeShellExtensionVersion checks a locally installed GNOME Shell extension version
func MigrationSource ¶
MigrationSource sets the migration source path
func NetworkManagerImport ¶
NetworkManagerImport imports a configuration into network manager
func NetworkManagerWifi ¶
NetworkManagerWifi sets the known wifi networks with WPA-PSK security
func ParseWebPage ¶
ParseWebPage parses a web page...
func RegexpReplace ¶
RegexpReplace replaces
func RestrictedFile ¶
RestrictedFile creates or replaces files only readable by the owner
func RestrictedRootFile ¶
RestrictedRootFile creates or replaces files only readable by root
func RootDirectory ¶
RootDirectory creates directories as root
func SnapClassic ¶
SnapClassic installs Snap packages in classic mode
func SnapDangerous ¶
SnapDangerous installs Snap packages without verifying their signatures
func SnapRefresh ¶
SnapRefresh refreshes Snap packages
func SnapVersion ¶
SnapVersion gets a Snap package version
func StopIfExist ¶
StopIfExist stops the step if all given files exist
func StopIfOlder ¶
StopIfOlder compares versions and stops the step if older
func SudoPassword ¶
SudoPassword sets the password for sudo
func SystemdDisable ¶
SystemdDisable disables a systemd service
func SystemdEnable ¶
SystemdEnable enables a systemd service
func UpdateAlternatives ¶
UpdateAlternatives changes default commands
func VscodeExtension ¶
VscodeExtension installs VS Code extensions
func VscodiumExtension ¶
VscodiumExtension installs VS Codium extensions
func XdgAutostart ¶
XdgAutostart enables autostart for given applications
func XdgMimeDefault ¶
XdgMimeDefault sets default applications for mimetypes
func XdgUserDir ¶
XdgUserDir sets XDG user dirs
Types ¶
type Instruction ¶
Instruction is an instruction. Returns true if succeeds, false if there has been an error
Source Files ¶
- TODOmozilla.go
- absent.go
- adduser.go
- apt_dpkg.go
- dconf.go
- directory.go
- download.go
- extract.go
- file.go
- flatpak.go
- fonts.go
- git.go
- github.go
- gnome_shell.go
- go.go
- gtkbookmark.go
- json.go
- module.go
- move.go
- network_manager.go
- pip.go
- regexp.go
- snap.go
- stop_if.go
- sudo.go
- symlink.go
- systemd.go
- update_alternatives.go
- vscode.go
- web.go
- xdg.go