Skip to content
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

Make config:status and config:import show export directory #6167

Open
gitressa opened this issue Nov 20, 2024 · 2 comments
Open

Make config:status and config:import show export directory #6167

gitressa opened this issue Nov 20, 2024 · 2 comments

Comments

@gitressa
Copy link
Contributor

Problem

Sometimes, you like to check where the export directory is with Drush, and maybe you run config:status, but get no help:

$ drush config:status
 [notice] No differences between DB and sync directory.

... also not from config:import:

$ drush config:import --diff
 [notice] There are no changes to import.

You do get to see the export directory with config:export:

$ drush config:export --diff
 [notice] The active configuration is identical to the configuration in the export directory (../assets/config).
../assets/config

Proposed solution

  1. Show the export directory when running config:status and config:export, same as config:import.
  2. Maybe show as Export directory: ../assets/config at the bottom, if possible? And remove the path in the parentheses after the " [notice] The active ..." string.
$ drush config:status --diff
 [notice] The active configuration is identical to the configuration in the export directory.
 Export directory: ../assets/config
Difference
$ drush config:status
 ------------- ----------- 
  Name          State      
 ------------- ----------- 
  system.site   Different  
 ------------- ----------- 
 Export directory: ../assets/config
@weitzman
Copy link
Member

See drush st --format=yaml. We should probably add the config-sync field to the default output of that command.

@gitressa
Copy link
Contributor Author

Thanks, that works well. Adding config-sync: ../assets/config to drush st would be very nice.

But maybe also include with drush config:status at the end, as seen in the last example above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants