You must have Drupal Console 0.10.4+ installed to test this.
curl https://drupalconsole.com/installer -L -o drupal.phar
mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal
drupal self-update
drupal init --override
cd /path/to/drupal8.dev
drupal chain --file=~/.console/chain/sample.yml
tree modules/custom/example/
modules/custom/example/
├── Tests
│ └── Controller
│ └── HelloWorldControllerTest.php
├── config
│ ├── schema
│ │ └── bar.schema.yml
│ └── translations
│ └── console.en.yml
├── example.info.yml
├── example.links.action.yml
├── example.links.menu.yml
├── example.links.task.yml
├── example.permissions.yml
├── example.routing.yml
├── example.services.yml
├── foo.page.inc
├── src
│ ├── Authentication
│ │ └── Provider
│ │ └── ExampleAuthenticationProvider.php
│ ├── BarInterface.php
│ ├── BarListBuilder.php
│ ├── Command
│ │ └── ExampleCommand.php
│ ├── Controller
│ │ └── HelloWorldController.php
│ ├── Entity
│ │ ├── Bar.php
│ │ ├── Foo.php
│ │ └── FooViewsData.php
│ ├── ExampleService.php
│ ├── ExampleServiceInterface.php
│ ├── FooAccessControlHandler.php
│ ├── FooInterface.php
│ ├── FooListBuilder.php
│ ├── Form
│ │ ├── BarDeleteForm.php
│ │ ├── BarForm.php
│ │ ├── FooDeleteForm.php
│ │ ├── FooForm.php
│ │ ├── FooSettingsForm.php
│ │ └── SettingsForm.php
│ └── Plugin
│ ├── Block
│ │ └── ExampleBlock.php
│ ├── ImageEffect
│ │ └── ExampleImageEffect.php
│ └── rest
│ └── resource
│ └── ExampleRestResource.php
└── templates
└── foo.html.twig
18 directories, 34 files
You can see the content of
~/.console/chain/sample.yml
file below.