package org.openrs2.compress.cli

import com.github.ajalt.clikt.core.NoOpCliktCommand
import com.github.ajalt.clikt.core.subcommands
import org.openrs2.compress.cli.bzip2.Bunzip2Command
import org.openrs2.compress.cli.bzip2.Bzip2Command
import org.openrs2.compress.cli.deflate.DeflateCommand
import org.openrs2.compress.cli.deflate.InflateCommand
import org.openrs2.compress.cli.gzip.GunzipCommand
import org.openrs2.compress.cli.gzip.GzipCommand
import org.openrs2.compress.cli.lzma.LzmaCommand
import org.openrs2.compress.cli.lzma.UnlzmaCommand

public fun main(args: Array<String>): Unit = CompressCommand().main(args)

public class CompressCommand : NoOpCliktCommand(name = "compress") {
    init {
        subcommands(
            Bzip2Command(),
            Bunzip2Command(),
            DeflateCommand(),
            InflateCommand(),
            GzipCommand(),
            GunzipCommand(),
            LzmaCommand(),
            UnlzmaCommand()
        )
    }
}
