Skip to content

Commit 056a320

Browse files
authored
chore: Added comment for excludePaths following .gitignore format
1 parent 2f47f02 commit 056a320

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/init.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package cmd
22

33
import (
44
"fmt"
5-
"github.com/loft-sh/devspace/pkg/devspace/imageselector"
65
"io/ioutil"
76
"net/http"
87
"os"
@@ -11,6 +10,8 @@ import (
1110
"strconv"
1211
"strings"
1312

13+
"github.com/loft-sh/devspace/pkg/devspace/imageselector"
14+
1415
"github.com/loft-sh/devspace/pkg/devspace/compose"
1516
"github.com/loft-sh/devspace/pkg/devspace/hook"
1617

@@ -374,6 +375,7 @@ func (cmd *InitCmd) Run(f factory.Factory) error {
374375
"(?m)^( open:)": "\n # `dev.open` tells DevSpace to open certain URLs as soon as they return HTTP status 200\n # Since we configured port-forwarding, we can use a localhost address here to access our application\n$1",
375376
"(?m)^( - url:.+)": "$1\n",
376377
"(?m)^( sync:)": " # `dev.sync` configures a file sync between our Pods in k8s and your local project files\n$1",
378+
"(?m)^( (-| ) excludePaths:)": " # `excludePaths` option expects an array of strings with paths that should not be synchronized between the\n # local filesystem and the remote container filesystem. It uses the same syntax as `.gitignore`.\n$1",
377379
"(?m)^( terminal:)": "\n # `dev.terminal` tells DevSpace to open a terminal as a last step during `devspace dev`\n$1",
378380
"(?m)^( command:)": " # With this optional `command` we can tell DevSpace to run a script when opening the terminal\n # This is often useful to display help info for new users or perform initial tasks (e.g. installing dependencies)\n # DevSpace has generated an example ./devspace_start.sh file in your local project - Feel free to customize it!\n$1",
379381
"(?m)^( replacePods:)": "\n # Since our Helm charts and manifests deployments are often optimized for production,\n # DevSpace let's you swap out Pods dynamically to get a better dev environment\n$1",

0 commit comments

Comments
 (0)