Skip to content

Commit

Permalink
Implement feedback from @rebelmusic and @rpkoller
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 2, 2023
1 parent 0fcee3f commit 821141e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/ddev/cmd/import-files.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func importFilesRun(app *ddevapp.DdevApp, uploadDir, sourcePath, extractPath str

const importPathPrompt = `Provide the path to the source directory or archive you wish to import.`

const importPathWarn = `Please note: if the destination directory exists, it will be replaced with the
const importPathWarn = `Please note: if the destination directory exists, it will be emptied and replaced with the
import assets specified here.`

// promptForFileSource prompts the user for the path to the source file.
Expand Down
4 changes: 2 additions & 2 deletions docs/content/users/usage/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Other project types need a custom configuration to be able to use this command.
```bash
$ ddev import-files
Provide the path to the source directory or archive you wish to import.
Please note: if the destination directory exists, it will be replaced with the
Please note: if the destination directory exists, it will be emptied and replaced with the
import assets specified here.
Path to file(s): ~/workspace/d10/.tarballs/files.tgz
You provided an archive. Do you want to extract from a specific path in your
Expand All @@ -84,7 +84,7 @@ Successfully imported files for d10
It can also import a directory containing static assets.
If using a Tar or Zip archive, the archive should contain *only the files inside the files directory*. For example in a Drupal site with files at `sites/default/files`, the archive should **not* contain the `files` directory, just the contents of the `files directory`. The easiest way to do this with the `tar` command is to `cd` into the directory and create the archive there. For example:
If using a Tar or Zip archive, the archive should contain *only the files inside the files directory*. For example in a Drupal site with files at `sites/default/files`, the archive should only contain the contents of the `files` directory; it should not contain a single `files` directory. The easiest way to do this with the `tar` command is to `cd` into the directory and create the archive there. An example Tar file creation is:

Check failure on line 87 in docs/content/users/usage/cli.md

View workflow job for this annotation

GitHub Actions / Docs check (spellcheck, markdownlint, textlint)

[textlint] reported by reviewdog 🐶 Incorrect usage of the term: “Zip”, use “ZIP” instead (terminology) Raw Output: /home/runner/work/ddev/ddev/docs/content/users/usage/cli.md:87:19: error: Incorrect usage of the term: “Zip”, use “ZIP” instead (terminology) (eslint.rules.terminology)
```bash
cd web/sites/default/files
Expand Down

0 comments on commit 821141e

Please sign in to comment.