#include <base/Application.h>
#include <base/string/FormatOutputStream.h>
#include <base/filesystem/FileSystem.h>
using namespace com::azure::dev::base;
private:
static const unsigned int MAJOR_VERSION = 1;
static const unsigned int MINOR_VERSION = 1;
public:
LinkApplication()
{
}
void main()
{
fout << getFormalName() << " version "
<< MAJOR_VERSION << '.' << MINOR_VERSION << EOL
<< "The Base Framework (Test Suite)" << EOL
<< ENDL;
bool nameSpecified = false;
case 1:
target = arguments[0];
break;
case 2:
target = arguments[0];
name = arguments[1];
nameSpecified = true;
break;
default:
fout << getFormalName() << " target [name]" << ENDL;
setExitCode(EXIT_CODE_ERROR);
return;
}
ferr << "Error: " << "Symbolic links not supported." << ENDL;
setExitCode(EXIT_CODE_ERROR);
return;
}
if (!nameSpecified) {
}
ferr << "Error: " << "Name already exists." << ENDL;
setExitCode(EXIT_CODE_ERROR);
return;
}
try {
ferr <<
"Error: " <<
"Unable to create link: " << e.
getMessage() << ENDL;
setExitCode(EXIT_CODE_ERROR);
}
}
~LinkApplication() noexcept {
}
};
APPLICATION_STUB(LinkApplication);