shell-cmd v1.2
Recursively find files matching a regex and execute a shell command for each match.
Loading...
Searching...
No Matches
Options Struct Reference

Aggregates all runtime options parsed from the command line. More...

Collaboration diagram for Options:

Public Attributes

bool dry_run = false
 Print commands without executing.
bool verbose = false
 Print commands before executing.
bool hidden = false
 Include hidden (dot) files/directories.
int max_depth = -1
 Max recursion depth (-1 = unlimited).
SizeFilter size_filter
 Optional size filter.
TimeFilter mtime_filter
 Optional modification-time filter.
std::string perm_filter
 Octal permission string, e.g. "755".
std::string user_filter
 Owner username filter.
std::string group_filter
 Group name filter.
char type_filter = 0
 Type filter: 'f' file, 'd' directory, 'l' symlink.
std::string exclude_pattern
 Regex pattern to exclude files/dirs.
bool stop_on_error = false
 Halt on first command failure.
bool confirm = false
 Prompt for confirmation before each command.
int jobs = 1
 Number of parallel jobs (1 = sequential).

Detailed Description

Aggregates all runtime options parsed from the command line.

Definition at line 49 of file cmd.cpp.

Member Data Documentation

◆ dry_run

bool Options::dry_run = false

Print commands without executing.

Definition at line 50 of file cmd.cpp.

◆ verbose

bool Options::verbose = false

Print commands before executing.

Definition at line 51 of file cmd.cpp.

◆ hidden

bool Options::hidden = false

Include hidden (dot) files/directories.

Definition at line 52 of file cmd.cpp.

◆ max_depth

int Options::max_depth = -1

Max recursion depth (-1 = unlimited).

Definition at line 53 of file cmd.cpp.

◆ size_filter

SizeFilter Options::size_filter

Optional size filter.

Definition at line 54 of file cmd.cpp.

◆ mtime_filter

TimeFilter Options::mtime_filter

Optional modification-time filter.

Definition at line 55 of file cmd.cpp.

◆ perm_filter

std::string Options::perm_filter

Octal permission string, e.g. "755".

Definition at line 56 of file cmd.cpp.

◆ user_filter

std::string Options::user_filter

Owner username filter.

Definition at line 57 of file cmd.cpp.

◆ group_filter

std::string Options::group_filter

Group name filter.

Definition at line 58 of file cmd.cpp.

◆ type_filter

char Options::type_filter = 0

Type filter: 'f' file, 'd' directory, 'l' symlink.

Definition at line 59 of file cmd.cpp.

◆ exclude_pattern

std::string Options::exclude_pattern

Regex pattern to exclude files/dirs.

Definition at line 60 of file cmd.cpp.

◆ stop_on_error

bool Options::stop_on_error = false

Halt on first command failure.

Definition at line 61 of file cmd.cpp.

◆ confirm

bool Options::confirm = false

Prompt for confirmation before each command.

Definition at line 62 of file cmd.cpp.

◆ jobs

int Options::jobs = 1

Number of parallel jobs (1 = sequential).

Definition at line 63 of file cmd.cpp.


The documentation for this struct was generated from the following file: