Skip to content

Commit fb4e661

Browse files
committed
feat(console): Added base for command
1 parent 26b6426 commit fb4e661

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.clang-format

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ BreakBeforeTernaryOperators: true
3838
BreakConstructorInitializersBeforeComma: false
3939
BreakAfterJavaFieldAnnotations: false
4040
BreakStringLiterals: true
41-
ColumnLimit: 100
41+
ColumnLimit: 140
4242
CommentPragmas: '^ IWYU pragma:'
4343
ConstructorInitializerAllOnOneLineOrOnePerLine: true
4444
ConstructorInitializerIndentWidth: 4
4545
ContinuationIndentWidth: 4
4646
Cpp11BracedListStyle: true
4747
DerivePointerAlignment: true
48-
DisableFormat: false
48+
DisableFormat: true
4949
ExperimentalAutoDetectBinPacking: false
5050
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
5151
IncludeCategories:

include/hyper/_console/command.hpp

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// <hyper/_console/command.hpp> -*- C++ -*-
2+
3+
/**
4+
* Hyper
5+
*
6+
* (c) 2017 Axel Etcheverry
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
#pragma once
12+
13+
#include <boost/program_options.hpp>
14+
15+
namespace hyper::console {
16+
namespace po = boost::program_options;
17+
18+
typedef int (*Command)(po::variables_map &vm, po::parsed_options &options, po::options_description &desc);
19+
}

include/hyper/console

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
#pragma once
1212

1313
#include <hyper/_console/color.hpp>
14+
#include <hyper/_console/command.hpp>

0 commit comments

Comments
 (0)