@@ -64,9 +64,9 @@ class Command : public Confable {
64
64
* Logging verbosity.
65
65
*/
66
66
enum class Verbosity {
67
- Never, // / never log anything
68
- Normal , // / log combined error when an error occurs
69
- Always, // / log combined output
67
+ Never, // / never log anything
68
+ OnError , // / log combined error when an error occurs
69
+ Always, // / log combined output
70
70
};
71
71
72
72
Command () = default ;
@@ -103,12 +103,12 @@ class Command : public Confable {
103
103
*/
104
104
std::string command () const ;
105
105
106
- Verbosity verbosity () const { return output_ ; }
106
+ Verbosity verbosity () const { return log_output_ ; }
107
107
Command verbosity (Verbosity v) && {
108
108
set_verbosity (v);
109
109
return std::move (*this );
110
110
}
111
- void set_verbosity (Verbosity v) { output_ = v; }
111
+ void set_verbosity (Verbosity v) { log_output_ = v; }
112
112
113
113
Mode mode () const { return mode_; }
114
114
Command mode (Mode m) && {
@@ -142,13 +142,13 @@ class Command : public Confable {
142
142
{" path" , make_schema (&executable_, " path to executable" ).require ().not_empty ().executable ()},
143
143
{" args" , make_schema (&args_, " arguments to executable" )},
144
144
{" mode" , make_schema (&mode_, " synchronization mode to use" )},
145
- {" output " , make_schema (&output_ , " how to log command output" )},
145
+ {" log_output " , make_schema (&log_output_ , " how to log command output" )},
146
146
{" ignore_failure" , make_schema (&ignore_failure_, " whether to ignore execution failure" )},
147
147
},
148
148
Struct{
149
149
{" command" , make_schema (&command_, " command to execute within shell" ).require ().not_empty ()},
150
150
{" mode" , make_schema (&mode_, " synchronization mode to use" )},
151
- {" output " , make_schema (&output_ , " how to log command output" )},
151
+ {" log_output " , make_schema (&log_output_ , " how to log command output" )},
152
152
{" ignore_failure" , make_schema (&ignore_failure_, " whether to ignore execution failure" )},
153
153
},
154
154
String{&command_, " command to execute within shell" }.not_empty (),
@@ -163,7 +163,7 @@ class Command : public Confable {
163
163
std::vector<std::string> args_;
164
164
std::string command_;
165
165
Mode mode_ = Mode::Sync;
166
- Verbosity output_ = Verbosity::Always;
166
+ Verbosity log_output_ = Verbosity::Always;
167
167
bool ignore_failure_ = false ;
168
168
};
169
169
@@ -176,7 +176,7 @@ ENUM_SERIALIZATION(Command::Mode, ({
176
176
177
177
ENUM_SERIALIZATION (Command::Verbosity, ({
178
178
{Command::Verbosity::Never, " never" },
179
- {Command::Verbosity::Normal , " normal " },
179
+ {Command::Verbosity::OnError , " on_error " },
180
180
{Command::Verbosity::Always, " always" },
181
181
}))
182
182
// clang-format on
0 commit comments