Skip to content

Commit

Permalink
Add fixes from documentation repository (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuarez20 authored and enzolutions committed Jun 27, 2019
1 parent 15fb213 commit cdc910f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions translations/config.export.content.type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ options:
remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
include-module-dependencies: 'Include content type module dependencies in module info YAML file'
examples:
- description: 'Provide a content type and module name'
- description: 'Provide a content type and module name.'
execution: |
drupal config:export:content:type page \
--module="demo"
- description: 'If you want export content type provide the optional config'
- description: 'Export content type as an optional config for the provided module.'
execution: |
drupal config:export:content:type page \
--module="demo" \
Expand Down
4 changes: 2 additions & 2 deletions translations/config.export.single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ messages:
invalid-config-name: 'Invalid config name, please select one of the list'
config-exported: 'Configuration(s) exported successfully'
examples:
- description: 'Provide config settings name to be exported'
- description: 'Provide config settings name to be exported.'
execution: |
drupal config:export:single \
--name=config.settings.name
- description: 'if uuid and/or config hashes will be removed.'
- description: 'Export with uuid and config hashes removed.'
execution: |
drupal config:export:single \
--name=config.settings.name \
Expand Down
13 changes: 9 additions & 4 deletions translations/config.export.view.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: 'Export a view in YAML format inside a provided module to reuse in other website.'
description: 'Export a view in YAML format inside a provided module to reuse in another website.'
messages:
view-exported: 'View exported sucessfully'
depencies-included: 'The following module dependencies were included at "%s"'
Expand All @@ -17,14 +17,19 @@ options:
remove-uuid: 'If set, the configuration will be exported without uuid key.'
remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
examples:
- description: 'Provide a view id'
- description: 'Perform a simple export.'
execution: drupal config:export:view viewid
- description: 'You can provide the interactive values like parameter.'
- description: 'Export as optional config for the provided module.'
execution: |
drupal config:export:view viewid \
--module="modulename" \
--optional-config \
--include-module-dependencies \
--remove-uuid \
--remove-config-hash
- description: "Export as config for the provided module, updating the module's info.yml with any module dependencies from the view."
execution: |
drupal config:export:view viewid \
--module="modulename" \
--optional-config \
--include-module-dependencies
2 changes: 1 addition & 1 deletion translations/config.export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ examples:
execution: |
drupal config:export \
--directory="path/to/export"
- description: 'If export will be in a compressed file and/or if uuid and config hashes will be removed.'
- description: 'Export as a compressed file with uuid and config hashes removed'
execution: |
drupal config:export \
--directory="path/to/export" \
Expand Down

0 comments on commit cdc910f

Please sign in to comment.