-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved language around --nodelete flag in push and pull commands #4659
Conversation
This comment has been minimized.
This comment has been minimized.
e564d29
to
be2df96
Compare
Coverage report
Show files with reduced coverage 🔻
Test suite run success1917 tests passing in 871 suites. Report generated by 🧪jest coverage report action from 58768c3 |
be2df96
to
41505c2
Compare
412b5e3
to
0a344c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR, @EvilGenius13!
I've left only one minor suggestion — please feel free to adopt a different version from mine, following a similar idea :)
@@ -33,7 +33,7 @@ If no theme is specified, then you're prompted to select the theme to pull from | |||
}), | |||
nodelete: Flags.boolean({ | |||
char: 'n', | |||
description: 'Runs the pull command without deleting local files.', | |||
description: 'Prevent deleting local files that have been removed remotely.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't know if the given files ever exist remotely, so I'd update this to something like this:
description: 'Prevent deleting local files that have been removed remotely.', | |
description: 'Prevent deleting local files that that do not exist remotely.', |
@@ -65,7 +65,7 @@ export default class Push extends ThemeCommand { | |||
}), | |||
nodelete: Flags.boolean({ | |||
char: 'n', | |||
description: 'Runs the push command without deleting local files.', | |||
description: 'Prevent deleting remote files that have been removed locally.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adopting the same reasoning:
description: 'Prevent deleting remote files that have been removed locally.', | |
description: 'Prevent deleting remote files that that do not exist locally.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to Guilherme's suggestion (or something along those lines)
Thanks Josh!
The final edits are |
0a344c9
to
52f6d78
Compare
This commit updates the language around the --nodelete flag in the push and pull commands to make it more clear what files are being affected by the flag.
52f6d78
to
58768c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @EvilGenius13 🚀
@Shopify/app-inner-loop could someone please take a look at this? Thanks so much! |
WHY are these changes introduced?
Create some clarity around wording for
--nodelete
flagCloses: https://github.com/Shopify/develop-advanced-edits/issues/225
WHAT is this pull request doing?
Updating the language for the
--nodelete
flag on push and pull commandsHow to test your changes?
Purely documentation changes but you can see them by
Running:
shopify theme push --help
shopify theme pull --help
Measuring impact
How do we know this change was effective? Please choose one:
Checklist