Dargon.Nest.DevelopmentUtilities.CliProgressSpinner.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
        public void Update()
        {
            status = null;
             Render();
        }

Same methods

CliProgressSpinner::Update ( float percentage ) : void
CliProgressSpinner::Update ( string status ) : void

Usage Example

Example #1
0
 public static DevEgg FromRelativeProject(string name, Type projectType, string relativeProjectDirectoryPath)
 {
     var codeBase = new Uri(projectType.Assembly.CodeBase).AbsolutePath;
      var projectName = new FileInfo(codeBase).Name.Pass(x => x.Substring(0, x.Length - 4));
      var csprojName = $"{projectName}.csproj";
      var progress = new CliProgressSpinner($"{name}");
      progress.Update("Finding Project File");
      var matches = Directory.GetFiles(NestDeployerConstants.RootSolutionDirectoryPath, csprojName, SearchOption.AllDirectories);
      if (matches.Length == 0) {
     throw new FileNotFoundException($"Couldn't find {csprojName}!");
      } else if (matches.Length > 1) {
     throw new AmbiguousMatchException($"Found more than one match for {csprojName}: {matches.Join(", ")}");
      }
      var match = matches.First();
      var matchDirectory = Path.GetDirectoryName(match);
      var finalPath = Path.GetFullPath(Path.Combine(matchDirectory, relativeProjectDirectoryPath));
      progress.Update(finalPath);
      return new DevEgg() {
     Name = name,
     SourceDirectory = Path.Combine(finalPath, "bin", "Debug")
      };
 }
All Usage Examples Of Dargon.Nest.DevelopmentUtilities.CliProgressSpinner::Update