public static string BuildUrl(FigContext context, string relativePath, params object[] args)
        {
            var baseUrl = context.Options.ProjectUrl + "/" + context.Options.ProjectName + "/_git/" + context.Options.RepositoryName;

            if (!baseUrl.EndsWith("/"))
            {
                baseUrl += "/";
            }

            if (relativePath.StartsWith("/"))
            {
                relativePath = relativePath.Remove(0, 1);
            }

            return(string.Format(baseUrl + relativePath, args));
        }
 protected AzureDevOpsCommand(T opts, FigContext context) : base(opts, context)
 {
     EnsureConfiguration();
     InitializeAzureContext();
 }
Exemple #3
0
 protected Command(FigContext context)
 {
     steps   = new List <Func <CommandResult> >();
     Context = context;
 }