folly/folly/cli/NestedCommandLineApp.cpp

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <folly/cli/NestedCommandLineApp.h>

#include <iostream>

#include <glog/logging.h>

#include <folly/FileUtil.h>
#include <folly/Format.h>
#include <folly/experimental/io/FsUtil.h>

po;

namespace folly {

namespace {

// Guess the program name as basename(executable)
std::string guessProgramName() {}

} // namespace

ProgramExit::ProgramExit(int status, const std::string& msg)
    :{}

constexpr StringPiece const NestedCommandLineApp::kHelpCommand;
constexpr StringPiece const NestedCommandLineApp::kVersionCommand;

NestedCommandLineApp::NestedCommandLineApp(
    std::string programName,
    std::string version,
    std::string programHeading,
    std::string programHelpFooter,
    InitFunction initFunction)
    :{}

po::options_description& NestedCommandLineApp::addCommand(
    std::string name,
    std::string argStr,
    std::string shortHelp,
    std::string fullHelp,
    Command command,
    folly::Optional<po::positional_options_description> positionalOptions) {}

void NestedCommandLineApp::addAlias(std::string newName, std::string oldName) {}

void NestedCommandLineApp::setOptionStyle(
    boost::program_options::command_line_style::style_t style) {}

void NestedCommandLineApp::displayHelp(
    const po::variables_map& /* globalOptions */,
    const std::vector<std::string>& args) const {}

void NestedCommandLineApp::displayVersion() const {}

const std::string& NestedCommandLineApp::resolveAlias(
    const std::string& name) const {}

auto NestedCommandLineApp::findCommand(const std::string& name) const
    -> const std::pair<const std::string, CommandInfo>& {}

int NestedCommandLineApp::run(int argc, const char* const argv[]) {}

int NestedCommandLineApp::run(const std::vector<std::string>& args) {}

void NestedCommandLineApp::doRun(const std::vector<std::string>& args) {}

bool NestedCommandLineApp::isBuiltinCommand(const std::string& name) const {}

} // namespace folly