@@ -14,7 +14,7 @@ internal sealed class CleanFileBasedAppArtifactsCommand(ParseResult parseResult)
1414{
1515 public override int Execute ( )
1616 {
17- bool dryRun = _parseResult . GetValue ( CleanFileBasedAppArtifactsCommandParser . DryRunOption ) ;
17+ bool dryRun = _parseResult . GetValue ( CleanFileBasedAppArtifactsCommandDefinition . DryRunOption ) ;
1818
1919 using var metadataFileStream = OpenMetadataFile ( ) ;
2020
@@ -70,7 +70,7 @@ private IEnumerable<DirectoryInfo> GetFoldersToRemove()
7070
7171 Reporter . Output . WriteLine ( CliCommandStrings . CleanFileBasedAppArtifactsScanning , directory . FullName ) ;
7272
73- var days = _parseResult . GetValue ( CleanFileBasedAppArtifactsCommandParser . DaysOption ) ;
73+ var days = _parseResult . GetValue ( CleanFileBasedAppArtifactsCommandDefinition . DaysOption ) ;
7474 var cutoff = DateTime . UtcNow . AddDays ( - days ) ;
7575
7676 foreach ( var subdir in directory . GetDirectories ( ) )
@@ -89,7 +89,7 @@ private static FileInfo GetMetadataFile()
8989
9090 private FileStream ? OpenMetadataFile ( )
9191 {
92- if ( ! _parseResult . GetValue ( CleanFileBasedAppArtifactsCommandParser . AutomaticOption ) )
92+ if ( ! _parseResult . GetValue ( CleanFileBasedAppArtifactsCommandDefinition . AutomaticOption ) )
9393 {
9494 return null ;
9595 }
@@ -127,8 +127,8 @@ public static void StartAutomaticCleanupIfNeeded()
127127 Arguments = ArgumentEscaper . EscapeAndConcatenateArgArrayForProcessStart (
128128 [
129129 CleanCommandParser . GetCommand ( ) . Name ,
130- CleanFileBasedAppArtifactsCommandParser . Command . Name ,
131- CleanFileBasedAppArtifactsCommandParser . AutomaticOption . Name ,
130+ CleanFileBasedAppArtifactsCommandDefinition . Name ,
131+ CleanFileBasedAppArtifactsCommandDefinition . AutomaticOption . Name ,
132132 ] ) ,
133133 UseShellExecute = false ,
134134 RedirectStandardInput = true ,
0 commit comments