func Mask(ctx context.Context, unit string, opts Options) error {
	var args = []string{"mask", "--system", unit}
	if opts.UserMode {
		args[1] = "--user"
	}
	_, _, _, err := execute(ctx, args)
	return err
}
// Mask one or more units, as specified on the command line. This will link
// these unit files to /dev/null, making it impossible to start them.
//
// Notably, Mask may return ErrDoesNotExist if a unit doesn't exist, but it will
// continue masking anyway. Calling Mask on a non-existing masked unit does not
// return an error. Similarly, see Unmask.
Mask one or more units, as specified on the command line. This will link
these unit files to /dev/null, making it impossible to start them.

Notably, Mask may return ErrDoesNotExist if a unit doesn't exist, but it will
continue masking anyway. Calling Mask on a non-existing masked unit does not
return an error. Similarly, see Unmask.
// Mask one or more units as specified on the command line . This will link // these unit files to / dev / null making it impossible to start them . // // Notably Mask may return ErrDoesNotExist if a unit doesn ' t exist but it will // continue masking anyway . Calling Mask on a non - existing masked unit does not // return an error . Similarly see Unmask .
func Mask(ctx context.Context, unit string, opts Options) error {
	var args = []string{"mask", "--system", unit}
	if opts.UserMode {
		args[1] = "--user"
	}
	_, _, _, err := execute(ctx, args)
	return err
}
func Mask ( ctx context . Context , unit string , opts Options ) error { var args = [ ] string { " " , " " , unit } if opts . UserMode { args [ 1 ] = " " } _ , _ , _ , err := execute ( ctx , args ) return err }
Mask one or more units, as specified on the command line.
Mask one or more units as specified on the command line .