vfsflags

package
v0.0.0-...-b4aeae5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package vfsflags implements command line flags to set up a vfs

Index

Constants

This section is empty.

Variables

View Source
var (
	Opt       = vfscommon.DefaultOpt
	DirPerms  = &FileMode{Mode: &Opt.DirPerms}
	FilePerms = &FileMode{Mode: &Opt.FilePerms}
)

Options set by command line flags

Functions

func AddFlags

func AddFlags(flagSet *pflag.FlagSet)

AddFlags adds the non filing system specific flags to the command

Types

type FileMode

type FileMode struct {
	Mode *os.FileMode
}

FileMode is a command line friendly os.FileMode

func (*FileMode) Set

func (x *FileMode) Set(s string) error

Set a FileMode

func (*FileMode) String

func (x *FileMode) String() string

String turns FileMode into a string

func (*FileMode) Type

func (x *FileMode) Type() string

Type of the value

Jump to

Keyboard shortcuts

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