Skip to content

Commit

Permalink
Remove old compiler packages
Browse files Browse the repository at this point in the history
  • Loading branch information
gordon-klotho committed Feb 8, 2024
1 parent 8cf5a3a commit 78b0670
Show file tree
Hide file tree
Showing 919 changed files with 142 additions and 79,792 deletions.
10 changes: 5 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"pkg/infra/iac2": true,
"pkg/provider": true,
"pkg/construct": true,
"pkg/engine": true,
"pkg/knowledge_base": true,
// "pkg/infra/iac2": true,
// "pkg/provider": true,
// "pkg/construct": true,
// "pkg/engine": true,
// "pkg/knowledge_base": true,
"**/node_modules": true
},
"go.testTimeout": "5m"
Expand Down
110 changes: 0 additions & 110 deletions cmd/ast/main.go

This file was deleted.

31 changes: 0 additions & 31 deletions cmd/klotho/main.go
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
package main

import (
"github.com/klothoplatform/klotho/pkg/auth"
"github.com/klothoplatform/klotho/pkg/cli"
"github.com/spf13/pflag"
)

func main() {
authRequirement := LocalAuth(false)
km := cli.KlothoMain{
DefaultUpdateStream: "open:latest",
Version: Version,
PluginSetup: func(psb *cli.PluginSetBuilder) error {
return psb.AddAll()
},
Authorizer: &authRequirement,
}

km.Main()
}

// LocalAuth is an auth.Authorizer that requires login unless its value is true.
type LocalAuth bool

func (local *LocalAuth) SetUpCliFlags(flags *pflag.FlagSet) {
flags.BoolVar((*bool)(local), "local", bool(*local), "If provided, runs Klotho with a local login (that is, not requiring an authenticated login)")
}

func (local *LocalAuth) Authorize() (auth.LoginInfo, error) {
if !*local {
return auth.Authorize()
}
return auth.LoginInfo{Authorizer: "local"}, nil
}
160 changes: 0 additions & 160 deletions pkg/analytics/client.go

This file was deleted.

Loading

0 comments on commit 78b0670

Please sign in to comment.