Remove basedir config
This commit is contained in:
@@ -8,6 +8,6 @@ object Global {
|
||||
lazy val WORKDIR: Path = pathFromEnv("TGC_HAMMER_WORKDIR").get
|
||||
lazy val TREENAIL: Path = HAMMER / "deps" / "treenail"
|
||||
lazy val LONGNAIL: Path = HAMMER / "deps" / "longnail"
|
||||
lazy val BASE_DIR: Path = Path(Main.conf.baseDirectory(), os.pwd)
|
||||
lazy val BASE_DIR: Path = os.pwd
|
||||
lazy val CORE_DATASHEETS: Path = HAMMER / "coreDatasheets"
|
||||
}
|
||||
|
@@ -7,12 +7,9 @@ import os.Path
|
||||
import java.io.File
|
||||
|
||||
class HammerConf(arguments: Seq[String]) extends ScallopConf(arguments) {
|
||||
val baseDirectory: ScallopOption[File] = opt[File](default = Some(os.pwd.toIO))
|
||||
addSubcommand(new TreenailCommand)
|
||||
addSubcommand(new LongnailSchedCommand)
|
||||
|
||||
validateFileIsDirectory(baseDirectory)
|
||||
|
||||
verify()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user