 
 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)"

        if async || local {
            fatalError("Not implemented yet")
        }

        let stackOutputs = CloudFormation.outputs(name: config.name)
        let functionName = stackOutputs["FunctionName"]!


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

