-
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle commanddb filename defaults and --command-database-out option.
- Loading branch information
1 parent
b04da48
commit ac66542
Showing
9 changed files
with
108 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
Copyright 2024 René Ferdinand Rivera Morell | ||
Distributed under the Boost Software License, Version 1.0. | ||
(See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt) | ||
*/ | ||
|
||
#ifndef B2_COMMAND_DB_H | ||
#define B2_COMMAND_DB_H | ||
|
||
#include "config.h" | ||
|
||
#include "bind.h" | ||
#include "value.h" | ||
|
||
namespace lyra { | ||
class cli; | ||
} // namespace lyra | ||
|
||
namespace b2 { | ||
|
||
namespace command_db { | ||
|
||
void declare_args(lyra::cli &); | ||
|
||
void set_output_dir(value_ref dirname); | ||
|
||
} // namespace command_db | ||
|
||
struct command_db_module : b2::bind::module_<command_db_module> | ||
{ | ||
const char * module_name = "command-db"; | ||
|
||
template <class Binder> | ||
void def(Binder & binder) | ||
{ | ||
binder.def( | ||
&command_db::set_output_dir, "set-output-dir", ("dirname" * _1)); | ||
binder.loaded(); | ||
} | ||
}; | ||
|
||
} // namespace b2 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters