提交 31e492fa 编写于 作者: S Simon Fels

Drop app suffix from install/launch commands

上级 1b4857db
......@@ -123,8 +123,8 @@ set(SOURCES
anbox/cmds/version.cpp
anbox/cmds/run.cpp
anbox/cmds/install_app.cpp
anbox/cmds/launch_app.cpp
anbox/cmds/install.cpp
anbox/cmds/launch.cpp
anbox/cmds/container_manager.cpp
anbox/do_not_copy_or_move.h
......
......@@ -15,7 +15,7 @@
*
*/
#include "anbox/cmds/install_app.h"
#include "anbox/cmds/install.h"
#include "anbox/dbus/stub/application_manager.h"
#include <core/dbus/asio/executor.h>
......@@ -24,8 +24,8 @@
namespace fs = boost::filesystem;
anbox::cmds::InstallApp::InstallApp()
: CommandWithFlagsAndAction{cli::Name{"install-app"}, cli::Usage{"install-app"}, cli::Description{"Install specified application in the Android container"}}
anbox::cmds::Install::Install()
: CommandWithFlagsAndAction{cli::Name{"install"}, cli::Usage{"install"}, cli::Description{"Install specified application in the Android container"}}
{
flag(cli::make_flag(cli::Name{"apk"}, cli::Description{"Path to APK to install"}, apk_));
action([this](const cli::Command::Context&) {
......
......@@ -15,8 +15,8 @@
*
*/
#ifndef ANBOX_CMDS_INSTALL_APP_H_
#define ANBOX_CMDS_INSTALL_APP_H_
#ifndef ANBOX_CMDS_INSTALL_H_
#define ANBOX_CMDS_INSTALL_H_
#include <functional>
#include <iostream>
......@@ -26,9 +26,9 @@
namespace anbox {
namespace cmds {
class InstallApp : public cli::CommandWithFlagsAndAction {
class Install : public cli::CommandWithFlagsAndAction {
public:
InstallApp();
Install();
private:
std::string apk_;
......
......@@ -15,7 +15,7 @@
*
*/
#include "anbox/cmds/launch_app.h"
#include "anbox/cmds/launch.h"
#include "anbox/dbus/stub/application_manager.h"
#include <core/dbus/asio/executor.h>
......@@ -24,8 +24,8 @@
namespace fs = boost::filesystem;
anbox::cmds::LaunchApp::LaunchApp()
: CommandWithFlagsAndAction{cli::Name{"launch-app"}, cli::Usage{"launch-app"}, cli::Description{"Launch specified application in the Android container"}}
anbox::cmds::Launch::Launch()
: CommandWithFlagsAndAction{cli::Name{"launch"}, cli::Usage{"launch"}, cli::Description{"Launch specified application in the Android container"}}
{
flag(cli::make_flag(cli::Name{"package"}, cli::Description{"Package the application is part of"}, package_));
flag(cli::make_flag(cli::Name{"activity"}, cli::Description{"Activity of the application to start"}, activity_));
......
......@@ -15,8 +15,8 @@
*
*/
#ifndef ANBOX_CMDS_LAUNCH_APP_H_
#define ANBOX_CMDS_LAUNCH_APP_H_
#ifndef ANBOX_CMDS_LAUNCH_H_
#define ANBOX_CMDS_LAUNCH_H_
#include <functional>
#include <iostream>
......@@ -26,9 +26,9 @@
namespace anbox {
namespace cmds {
class LaunchApp : public cli::CommandWithFlagsAndAction {
class Launch : public cli::CommandWithFlagsAndAction {
public:
LaunchApp();
Launch();
private:
std::string package_;
......
......@@ -24,8 +24,8 @@
#include "anbox/cmds/version.h"
#include "anbox/cmds/run.h"
#include "anbox/cmds/install_app.h"
#include "anbox/cmds/launch_app.h"
#include "anbox/cmds/install.h"
#include "anbox/cmds/launch.h"
#include "anbox/cmds/container_manager.h"
#include <boost/filesystem.hpp>
......@@ -38,8 +38,8 @@ Daemon::Daemon() :
cmd.command(std::make_shared<cmds::Version>())
.command(std::make_shared<cmds::Run>())
.command(std::make_shared<cmds::InstallApp>())
.command(std::make_shared<cmds::LaunchApp>())
.command(std::make_shared<cmds::Install>())
.command(std::make_shared<cmds::Launch>())
.command(std::make_shared<cmds::ContainerManager>());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册