Example #1
0
    public async Task OnExecuteAsync()
    {
        CompileCommand.inPath     = inPath;
        CompileCommand.outPath    = outPath;
        CompileCommand.envName    = envName;
        CompileCommand.isVerbose  = isVerbose;
        CompileCommand.configPath = configPath;

        PublishCommand.Folder     = Folder;
        PublishCommand.time       = time;
        PublishCommand.configPath = configPath;
        PublishCommand.envName    = envName;
        PublishCommand.isVerbose  = isVerbose;

        try
        {
            await CompileCommand.OnExecuteAsync();
        }
        catch (Exception)
        {
            write("compile command failed.");
        }
        try
        {
            await PublishCommand.OnExecuteAsync();
        }
        catch (Exception)
        {
            write("publish command failed.");
        }
    }