8000 Add template tooltips/kira pilot by Kira-Pilot · Pull Request #2308 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

Add template tooltips/kira pilot #2308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jun 14, 2022
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Remove easter egg mentioning competitor (#2250)
This is more confusing than helpful!
  • Loading branch information
kylecarbs authored Jun 10, 2022
commit f79ab7f87e3b048a51f5d2f4e5a358b7b4923919
24 changes: 0 additions & 24 deletions cmd/coder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ import (
"errors"
"fmt"
"os"
"os/exec"
"path/filepath"
"strings"
_ "time/tzdata"

"github.com/coder/coder/cli"
"github.com/coder/coder/cli/cliui"
)

func main() {
dadjoke()
cmd, err := cli.Root().ExecuteC()
if err != nil {
if errors.Is(err, cliui.Canceled) {
Expand All @@ -25,23 +21,3 @@ func main() {
os.Exit(1)
}
}

//nolint
func dadjoke() {
if os.Getenv("EEOFF") != "" || filepath.Base(os.Args[0]) != "gitpod" {
return
}

args := strings.Fields(`run -it --rm git --image=index.docker.io/bitnami/git --command --restart=Never -- git`)
args = append(args, os.Args[1:]...)
cmd := exec.Command("kubectl", args...)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
_ = cmd.Start()
err := cmd.Wait()
if exitErr, ok := err.(*exec.ExitError); ok {
os.Exit(exitErr.ExitCode())
}
os.Exit(0)
}
0