mirror of
				https://github.com/GayPizzaSpecifications/pork.git
				synced 2025-11-03 17:39:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			426 B
		
	
	
	
		
			Kotlin
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			426 B
		
	
	
	
		
			Kotlin
		
	
	
	
	
	
package gay.pizza.pork.tool
 | 
						|
 | 
						|
import com.github.ajalt.clikt.core.CliktCommand
 | 
						|
import com.github.ajalt.clikt.parameters.arguments.argument
 | 
						|
import gay.pizza.dough.fs.PlatformFsProvider
 | 
						|
 | 
						|
class ReprintCommand : CliktCommand(help = "Reprint Parsed Compilation Unit", name = "reprint") {
 | 
						|
  val path by argument("file")
 | 
						|
 | 
						|
  override fun run() {
 | 
						|
    val tool = FileTool(PlatformFsProvider.resolve(path))
 | 
						|
    print(tool.reprint())
 | 
						|
  }
 | 
						|
}
 |