proxygen
Commands.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 #pragma once
10 
11 #include <functional>
12 #include <map>
13 #include <string>
14 #include <vector>
15 
16 namespace fizz {
17 namespace tool {
18 
19 int fizzClientCommand(const std::vector<std::string>& args);
20 int fizzServerCommand(const std::vector<std::string>& args);
21 
22 const std::map<std::string, std::function<int(const std::vector<std::string>&)>>
23  fizzUtilities = {{"client", &fizzClientCommand},
24  {"s_client", &fizzClientCommand},
25  {"server", &fizzServerCommand},
26  {"s_server", &fizzServerCommand}};
27 
28 } // namespace tool
29 } // namespace fizz
int fizzServerCommand(const std::vector< std::string > &args)
Definition: Actions.h:16
int fizzClientCommand(const std::vector< std::string > &args)
const std::map< std::string, std::function< int(const std::vector< std::string > &)> > fizzUtilities
Definition: Commands.h:23