You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long: wordwrap.WrapString(`Initialize a directory to be used with dfm by creating the .dfm.toml file there.
174
178
175
179
Specifying --repos and --target will allow you to configure which repos are used and where the files should be stored. It is safe to run dfm init on an already-initialized dfm directory, to change the repos that are being used.`, 80),
176
-
Args: cobra.NoArgs,
177
-
Run: runInit,
180
+
Example: ` dfm init --repos files ~/dotfiles`,
181
+
Args: cobra.NoArgs,
182
+
Run: runInit,
178
183
}
179
184
initCmd.Flags().StringArrayVar(&cliOptions.Repos, "repos", nil, "repositories to track")
180
185
initCmd.Flags().StringVar(&cliOptions.Target, "target", "", "directory to sync files in")
@@ -195,8 +200,9 @@ Specifying --repos and --target will allow you to configure which repos are used
195
200
})
196
201
197
202
addCmd:=&cobra.Command{
198
-
Use: "add",
199
-
Short: "Begin tracking files",
203
+
Use: "add [files]",
204
+
Aliases: []string{"import"},
205
+
Short: "Begin tracking files",
200
206
Long: wordwrap.WrapString(`Copy the given files into the repository and replace the originals with links to the tracked files.
201
207
202
208
If no repo is specified in the command, the repo that is listed last will be used.`, 80),
0 commit comments