util

package
v0.40.1-geaaru Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright © 2021-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Index

Constants

This section is empty.

Variables

View Source
var LockedCommands = []string{"install", "uninstall", "upgrade"}

Functions

func BindSolverFlags

func BindSolverFlags(cmd *cobra.Command)

func BindSystemFlags

func BindSystemFlags(cmd *cobra.Command)

func SetCliFinalizerEnvs

func SetCliFinalizerEnvs(finalizerEnvs []string) error

func SetSystemConfig

func SetSystemConfig()

func Version

func Version() string

Types

type LockGuard

type LockGuard struct {
	Lockfile *flock.Flock
}

func NewLockGuard

func NewLockGuard() *LockGuard

func (*LockGuard) Locked

func (l *LockGuard) Locked() (ans bool)

func (*LockGuard) TryLock

func (l *LockGuard) TryLock(cmd string, cfg *config.LuetConfig) (bool, error)

func (*LockGuard) Unlock

func (l *LockGuard) Unlock(cfg *config.LuetConfig) error

Jump to

Keyboard shortcuts

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