Drop app suffix from install/launch commands

This commit is contained in:
Simon Fels 2016-09-17 11:17:06 +02:00
commit 31e492fa1a
6 changed files with 20 additions and 20 deletions

View file

@ -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

View file

@ -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&) {

View file

@ -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_;

View file

@ -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_));

View file

@ -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_;

View file

@ -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>());
}