brew deps: add hidden option -n
-n means 'natural order' instead of alpha-order, and will show the order in which the deps will be installed.
This commit is contained in:
		
							parent
							
								
									8bb40e30e9
								
							
						
					
					
						commit
						bfd75db803
					
				@ -8,7 +8,9 @@ module Homebrew extend self
 | 
			
		||||
        puts "#{f.name}:#{f.deps*' '}"
 | 
			
		||||
      end
 | 
			
		||||
    else
 | 
			
		||||
      puts ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection.sort
 | 
			
		||||
      all_deps = ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection
 | 
			
		||||
      all_deps.sort! unless ARGV.include? "-n"
 | 
			
		||||
      puts all_deps
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user