42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
description: 'Create dummy comments for your Drupal 8 application.'
|
|
help: 'The <info>create:comments</info> command helps you create dummy comments.'
|
|
welcome: 'Welcome to the Drupal comments generator'
|
|
arguments:
|
|
node-id: 'Node ID where the comments will be created'
|
|
options:
|
|
limit: 'How many comments would you like to create'
|
|
title-words: 'Maximum number of words in comment titles'
|
|
time-range: 'How far back in time should the comments be dated'
|
|
questions:
|
|
node-id: 'Node ID where the comments will be created'
|
|
content-type: 'Select content type(s) to be used on comment creation'
|
|
limit: 'Enter how many comments would you like to generate'
|
|
title-words: 'Enter the maximum number of words in titles'
|
|
time-range: 'How far back in time should the comments be dated?'
|
|
time-ranges:
|
|
- 'Now'
|
|
- '1 hour ago'
|
|
- '1 day ago'
|
|
- '1 week ago'
|
|
- '1 month ago'
|
|
- '1 year ago'
|
|
messages:
|
|
node-id: 'Node Id'
|
|
comment-id: 'Comment Id'
|
|
content-type: 'Content type'
|
|
title: 'Title'
|
|
created: 'Created Time'
|
|
invalid-content-types: 'Content types "%s" are invalid'
|
|
created-comments: 'Created "%s" comments successfully'
|
|
error: 'Error creating comments: "%s"'
|
|
examples:
|
|
- description: 'Provide the node id where the comments will be generated.'
|
|
execution: drupal create:comments node-id
|
|
- description: 'Provide number of comments to generate, max title words and time range.'
|
|
execution: |
|
|
drupal create:comments node-id \
|
|
--limit="2" \
|
|
--title-words="5" \
|
|
--time-range="1"
|
|
|