This repository was archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 213
Validate on shopify theme share/pull/push/serve if users are running the command in a theme/empty directory
#2680
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
1200ea8
Introduce SpecificationHandlers::Theme
312daac
Get rid of root and templates folders differentiation
5017859
Ignore superfluous folders
66e8918
Ask user to confirm cwd
79460f5
Move code into RootHelper, rename theme_specification_handler variable
956a899
Fix Rubocop offenses
8b4625f
Use real files in unit tests
056bdd3
Split theme_directory?, avoid interruption during unit tests
a10cdcb
Add theme directory check to serve command
ccbe295
Add theme directory check to push command
652ebde
Add theme/empty directory check to pull command
74bad58
Add --force flag to all commands
a6b99a9
Use project_context instead of Dir.chdir
34e3834
return false if @ctx.testing?
81b4083
Rename test, use FileUtils instead of Dir
8c6c771
Update CHANGELOG.md
a490f24
Add --force flag to help messages
0ed7366
Simplify logic by getting rid of missing_folders
eaaae91
Make logic more readable, introduce invalid_theme_directory? and exis…
7c81632
invalid_theme_directory? –> valid_theme_directory?
9f703db
ensure that specified_root is rmdir'ed
8ada024
Get rid of project_context("theme") in pull_test
b9eb985
Get rid of project_context("theme") in push_test
1d72a40
Get rid of project_context("theme") in serve_test
e1afbbd
Get rid of project_context("theme") in share_test
01859f4
Hide --force flag in docs
c3feed5
Raise error, instead of returning false, if current_directory_confirm…
c5a6c21
Use @ root, instead of attr_accessor
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add theme directory check to serve command
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
See comment above about why this kind of tests could be deleted.