VirtualBox

Changeset 90214 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 15, 2021 3:10:55 PM (4 years ago)
Author:
vboxsync
Message:

VBoxManage: "cloud machine" placeholder. bugref:10065.

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk

    r88363 r90214  
    105105        $(if $(VBOX_WITH_NAT_SERVICE),../../NetworkServices/NetLib/VBoxNetPortForwardString.cpp,) \
    106106        VBoxManageCloud.cpp \
     107        VBoxManageCloudMachine.cpp \
    107108        ../Common/PasswordInput.cpp
    108109 VBoxManage_SOURCES.win = \
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp

    r87278 r90214  
    4141
    4242using namespace com;//at least for Bstr
     43
     44
     45/*
     46 * "cloud machine" handling is in VBoxManageCloudMachine.cpp to make
     47 * this file less crowded.
     48 */
     49RTEXITCODE handleCloudMachine(HandlerArg *a, int iFirst, const ComPtr<ICloudProfile> &pCloudProfile);
     50RTEXITCODE listCloudMachines(HandlerArg *a, int iFirst, const ComPtr<ICloudProfile> &pCloudProfile);
     51
    4352
    4453/**
     
    453462        { "objects",             1005, RTGETOPT_REQ_NOTHING },
    454463        { "help",                1006, RTGETOPT_REQ_NOTHING },
    455         { "--help",              1007, RTGETOPT_REQ_NOTHING }
     464        { "--help",              1007, RTGETOPT_REQ_NOTHING },
     465        { "machines",            1008, RTGETOPT_REQ_NOTHING }
    456466    };
    457467
     
    476486                printHelp(g_pStdOut);
    477487                return RTEXITCODE_SUCCESS;
     488
     489            case 1008:          /* machines */
     490                return listCloudMachines(a, GetState.iNext,
     491                                         pCommonOpts->profile.pCloudProfile);
     492
    478493            case VINF_GETOPT_NOT_OPTION:
    479494                return errorUnknownSubcommand(ValueUnion.psz);
     
    27482763        { "network",          1003, RTGETOPT_REQ_NOTHING },
    27492764        { "volume",           1004, RTGETOPT_REQ_NOTHING },
    2750         { "object",           1005, RTGETOPT_REQ_NOTHING }
     2765        { "object",           1005, RTGETOPT_REQ_NOTHING },
     2766        { "machine",          1006, RTGETOPT_REQ_NOTHING }
    27512767    };
    27522768
     
    27792795                return handleCloudNetwork(a, GetState.iNext, &commonOpts);
    27802796#endif /* VBOX_WITH_CLOUD_NET */
     2797            case 1006:
     2798                return handleCloudMachine(a, GetState.iNext,
     2799                                          commonOpts.profile.pCloudProfile);
     2800
    27812801            case VINF_GETOPT_NOT_OPTION:
    27822802                return errorUnknownSubcommand(ValueUnion.psz);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette