Skip to content

Commit

Permalink
Update output from outdated command
Browse files Browse the repository at this point in the history
  • Loading branch information
marchbold committed Oct 28, 2021
1 parent 9a1e8b3 commit caed25c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ package com.apm.client.commands.packages
APM.io.writeLine(
padTo( "identifier", maxIdentifierLength + 3 ) +
padTo( "installed", 15 ) +
padTo( "available", 15 )
padTo( "available", 15 ),
IOColour.LIGHT_BLUE
);

for each (var packageData:InstallPackageData in _queryData.packagesToInstall)
Expand All @@ -184,7 +185,7 @@ package com.apm.client.commands.packages
padTo( packageData.request.packageIdentifier, maxIdentifierLength + 3 ) +
padTo( cachedPackage == null ? "null" : cachedPackage.version.toString(), 15 ) +
packageData.packageVersion.toString(),
(updateAvailable ? IOColour.LIGHT_BLUE : null)
(updateAvailable ? IOColour.GREEN : null)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,16 @@
*/
package com.apm.client.commands.packages.processes
{
import com.apm.SemVer;
import com.apm.SemVerRange;
import com.apm.client.APM;
import com.apm.client.commands.packages.data.InstallData;
import com.apm.client.commands.packages.data.InstallRequest;
import com.apm.client.commands.packages.utils.ProjectDefinitionValidator;
import com.apm.client.logging.Log;
import com.apm.client.processes.ProcessBase;
import com.apm.client.repositories.PackageResolver;
import com.apm.data.packages.PackageDefinition;
import com.apm.data.packages.PackageDependency;
import com.apm.data.packages.PackageVersion;
import com.apm.utils.PackageFileUtils;

import flash.filesystem.File;


/**
Expand Down Expand Up @@ -93,11 +88,11 @@ package com.apm.client.commands.packages.processes
null,
function ( success:Boolean, packageDefinition:PackageDefinition ):void
{
Log.d( TAG, "getPackageVersion(): success=" + success + " package:" + packageDefinition.toString() );
var foundVersion:Boolean = success && packageDefinition.versions.length > 0;
APM.io.stopSpinner( foundVersion,
foundVersion ? "Found package: " + packageDefinition.toString() :
"No package found matching : " + _request.description()
);
var message:String = foundVersion ? "Found package: " + packageDefinition.toString() :
"No package found matching : " + _request.description();
APM.io.stopSpinner( foundVersion, message, foundVersion );
try
{
if (foundVersion)
Expand Down

0 comments on commit caed25c

Please sign in to comment.