Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Commit b4993b6

Browse files
committed
Rename bootstrap to testdrive.
Bootstrap is meant for a system that sets itself up. This command is more like a testing mode so I want to rename it to avoid confusion. Fixes hootsuite#129 and came out of hootsuite#117.
1 parent 1da0c39 commit b4993b6

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ Download from [https://github.com/runatlantis/atlantis/releases](https://github.
6262

6363
Run
6464
```
65-
./atlantis bootstrap
65+
./atlantis testdrive
6666
```
67-
This will walk you through running Atlantis locally. It will
67+
This mode sets up Atlantis on a test repo so you can try it out. It will
6868
- fork an example terraform project
6969
- install terraform (if not already in your PATH)
7070
- install ngrok so we can expose Atlantis to GitHub

cmd/bootstrap.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ import (
1717
"fmt"
1818
"os"
1919

20-
"github.com/runatlantis/atlantis/bootstrap"
20+
"github.com/runatlantis/atlantis/testdrive"
2121
"github.com/spf13/cobra"
2222
)
2323

24-
// BootstrapCmd starts the bootstrap process for testing out Atlantis.
25-
type BootstrapCmd struct{}
24+
// TestdriveCmd starts the testdrive process for testing out Atlantis.
25+
type TestdriveCmd struct{}
2626

2727
// Init returns the runnable cobra command.
28-
func (b *BootstrapCmd) Init() *cobra.Command {
28+
func (b *TestdriveCmd) Init() *cobra.Command {
2929
return &cobra.Command{
30-
Use: "bootstrap",
30+
Use: "testdrive",
3131
Short: "Start a guided tour of Atlantis",
3232
RunE: func(cmd *cobra.Command, args []string) error {
33-
err := bootstrap.Start()
33+
err := testdrive.Start()
3434
if err != nil {
3535
fmt.Fprintf(os.Stderr, "\033[31mError: %s\033[39m\n\n", err.Error())
3636
}

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ func main() {
3232
AtlantisVersion: atlantisVersion,
3333
}
3434
version := &cmd.VersionCmd{AtlantisVersion: atlantisVersion}
35-
bootstrap := &cmd.BootstrapCmd{}
35+
testdrive := &cmd.TestdriveCmd{}
3636
cmd.RootCmd.AddCommand(server.Init())
3737
cmd.RootCmd.AddCommand(version.Init())
38-
cmd.RootCmd.AddCommand(bootstrap.Init())
38+
cmd.RootCmd.AddCommand(testdrive.Init())
3939
cmd.Execute()
4040
}

scripts/coverage.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# with multiple packages, see https://code.google.com/p/go/issues/detail?id=6909
77
#
88
# Usage: coverage.sh packages...
9-
# Example: coverage.sh github.com/runatlantis/atlantis github.com/runatlantis/atlantis/bootstrap
9+
# Example: coverage.sh github.com/runatlantis/atlantis github.com/runatlantis/atlantis/testdrive
1010
#
1111

1212
set -e

bootstrap/github.go testdrive/github.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// limitations under the License.
1212
// Modified hereafter by contributors to runatlantis/atlantis.
1313
//
14-
package bootstrap
14+
package testdrive
1515

1616
import (
1717
"context"

bootstrap/bootstrap.go testdrive/testdrive.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// limitations under the License.
1212
// Modified hereafter by contributors to runatlantis/atlantis.
1313
//
14-
// Package bootstrap is used by the bootstrap command as a quick-start of
14+
// Package testdrive is used by the testdrive command as a quick-start of
1515
// Atlantis.
16-
package bootstrap
16+
package testdrive
1717

1818
import (
1919
"context"
@@ -37,9 +37,9 @@ import (
3737

3838
var terraformExampleRepoOwner = "runatlantis"
3939
var terraformExampleRepo = "atlantis-example"
40-
var bootstrapDescription = `[white]Welcome to Atlantis bootstrap!
40+
var bootstrapDescription = `[white]Welcome to Atlantis testdrive!
4141
42-
This mode walks you through setting up and using Atlantis. We will
42+
This mode sets up Atlantis on a test repo so you can try it out. We will
4343
- fork an example terraform project to your username
4444
- install terraform (if not already in your PATH)
4545
- install ngrok so we can expose Atlantis to GitHub
@@ -53,12 +53,12 @@ var pullRequestBody = "In this pull request we will learn how to use atlantis. T
5353
"* Now lets apply that plan. Type `atlantis apply` in the comments. This will run a `terraform apply`.\n" +
5454
"\nThank you for trying out atlantis. For more info on running atlantis in production see https://github.com/runatlantis/atlantis"
5555

56-
// Start begins the bootstrap process.
56+
// Start begins the testdrive process.
5757
// nolint: errcheck
5858
func Start() error {
5959
s := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
6060
colorstring.Println(bootstrapDescription)
61-
colorstring.Print("\n[white][bold]GitHub username: ")
61+
colorstring.Print("\n[white][bold]github.com username: ")
6262
fmt.Scanln(&githubUsername)
6363
if githubUsername == "" {
6464
return fmt.Errorf("please enter a valid github username")
@@ -231,7 +231,7 @@ tunnels:
231231
colorstring.Println("[green] [press Ctrl-c to exit]")
232232

233233
// Wait for SIGINT or SIGTERM signals meaning the user has Ctrl-C'd the
234-
// bootstrap process and want's to stop.
234+
// testdrive process and want's to stop.
235235
signalChan := make(chan os.Signal, 1)
236236
signal.Notify(signalChan, syscall.SIGINT, syscall.SIGTERM)
237237

bootstrap/utils.go testdrive/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// limitations under the License.
1212
// Modified hereafter by contributors to runatlantis/atlantis.
1313
//
14-
package bootstrap
14+
package testdrive
1515

1616
import (
1717
"archive/zip"

0 commit comments

Comments
 (0)