Exemple #1
0
        static PrjHelperResponse CreateStandardResponse(PrjResponse response)
        {
            if (response.Succeeded)
            {
                return(PrjHelperResponse.Success());
            }

            return(PrjHelperResponse.Error(response.ErrorMessage));
        }
Exemple #2
0
        static PrjResponse RunPrjCommonEnd(
            Process proc, string errorOutput)
        {
            // If it returns an error code, then assume that
            // the contents of STDERR are the error message to display
            // to the user
            // Otherwise, assume the contents of STDERR are the final output
            // data.  This can include things like serialized YAML
            if (proc.ExitCode != 0)
            {
                return(PrjResponse.Error(errorOutput));
            }

            return(PrjResponse.Success(errorOutput));
        }
Exemple #3
0
        static PrjHelperResponse CreateStandardResponse(PrjResponse response)
        {
            if (response.Succeeded)
            {
                return PrjHelperResponse.Success();
            }

            return PrjHelperResponse.Error(response.ErrorMessage);
        }