Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:sst/ion into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Jul 30, 2024
2 parents 8f64e41 + 65418ca commit b35b695
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cmd/sst/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ func CmdInit(cli *cli.Cli) error {
}

fmt.Print("\033[?25l")
// orange
fmt.Print("\033[38;2;255;127;0m")
for _, line := range logo {
for _, char := range line {
color.New(color.FgYellow).Print(string(char))
fmt.Print(string(char))
time.Sleep(5 * time.Millisecond)
}
fmt.Println()
Expand Down
4 changes: 3 additions & 1 deletion pkg/flag/flag.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package flag

import "os"
import (
"os"
)

var SST_NO_CLEANUP = os.Getenv("SST_NO_CLEANUP") != ""
3 changes: 2 additions & 1 deletion pkg/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/Masterminds/semver/v3"
"github.com/sst/ion/internal/fs"
"github.com/sst/ion/internal/util"
"github.com/sst/ion/pkg/flag"
"github.com/sst/ion/pkg/js"
"github.com/sst/ion/pkg/project/provider"
)
Expand Down Expand Up @@ -313,7 +314,7 @@ func (p *Project) Provider(name string) (provider.Provider, bool) {
}

func (p *Project) Cleanup() error {
if os.Getenv("SST_NO_ARTIFACT_CLEANUP") != "" {
if !flag.SST_NO_CLEANUP {
return nil
}
return os.RemoveAll(
Expand Down

0 comments on commit b35b695

Please sign in to comment.