 
 class DeployCommand {
     func command(newVersion: Bool) {
+        let config = Template.parseTemplateAtPath(".")!
+        
         let zipUrl = URL(string: "\(config.name).lambda.zip", relativeTo: config.url)!
         let zipPath = zipUrl.path
 

    let (_, stdout, _) = ShellCommand.piped(command: "swift package dump-package", label: "pkg info")
    return JSON(data: stdout.data(using: .utf8)!)
}

var config = Template.parseTemplateAtPath(".")!

func dockerfile() -> String {
    let packageName = packageInfo()["name"].stringValue


class LogsCommand {
    func command(tail: Bool) {
        let config = Template.parseTemplateAtPath(".")!
        
        let stackOutputs = CloudFormation.outputs(name: config.name)
        let functionName = stackOutputs["FunctionName"]!
        let group = "/aws/lambda/\(functionName)"
