-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
94 additions
and
31 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 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 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,14 @@ | ||
// Copyright © 2016 George Georgiev. All rights reserved. | ||
// | ||
|
||
#include "doim/tool/tool_command.h" | ||
|
||
namespace doim | ||
{ | ||
ToolCommandSPtr gBuildToolCommand = ToolCommand::global("build", gBuildToolCommand); | ||
ToolCommandSPtr gGenerateToolCommand = | ||
ToolCommand::global("generate", gGenerateToolCommand); | ||
ToolCommandSPtr gCoverageToolCommand = | ||
ToolCommand::global("coverage", gCoverageToolCommand); | ||
ToolCommandSPtr gIwyuToolCommand = ToolCommand::global("iwyu", gIwyuToolCommand); | ||
} |
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,35 @@ | ||
// Copyright © 2016 George Georgiev. All rights reserved. | ||
// | ||
|
||
#pragma once | ||
|
||
#include "doim/element.hpp" | ||
#include "doim/set.hpp" | ||
#include <memory> | ||
#include <str> | ||
#include <tuple> | ||
|
||
namespace doim | ||
{ | ||
class ToolCommand; | ||
typedef shared_ptr<ToolCommand> ToolCommandSPtr; | ||
|
||
class ToolCommand : public Element<ToolCommand, string> | ||
{ | ||
public: | ||
ToolCommand(const string& name) | ||
: Element(name) | ||
{ | ||
} | ||
|
||
const string& name() const | ||
{ | ||
return std::get<0>(mArgs); | ||
} | ||
}; | ||
|
||
extern ToolCommandSPtr gBuildToolCommand; | ||
extern ToolCommandSPtr gGenerateToolCommand; | ||
extern ToolCommandSPtr gCoverageToolCommand; | ||
extern ToolCommandSPtr gIwyuToolCommand; | ||
} |
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