chef-cli icon indicating copy to clipboard operation
chef-cli copied to clipboard

The generator prints out unwanted text and there's no way to change it

Open adamscharf opened this issue 9 years ago • 2 comments

Description

I created a custom cookbook generator using the ChefDK and there is a message that prints out after you run the generator. The details of this message don't apply to my customized cookbooks but there is no way to configure it. I've copied the message output below. I'd like to be able to customize this output.

There are several commands you can run to get started locally developing and testing your cookbook.
Type `delivery local --help` to see a full list.

Why not start by writing a test? Tests for the default recipe are stored at:

test/recipes/default_test.rb

If you'd prefer to dive right in, the default recipe can be found at:

recipes/default.rb

ChefDK Version

Chef Development Kit Version: 1.0.3
chef-client version: 12.16.42
delivery version: master (83358fb62c0f711c70ad5a81030a6cae4017f103)
berks version: 5.2.0
kitchen version: 1.13.2

Platform Version

OS X El Capitan - 10.11.6 (15G1212)

Replication Case

chef generate cookbook <cookbook_name>

or

chef generate cookbook <cookbook_name> -g <path/to/custom/generator/>

  • The output is always generated, whether you use the built-in generator or a custom one.

adamscharf avatar Dec 16 '16 13:12 adamscharf

I have a related issue. We name our projects cookbook-<%= cookbook_name %> because we have non-Chef projects in the same group. I would like to customize the text:

Your cookbook is ready. Type cd cookbook-name to enter it.

martinmosegaard avatar Nov 17 '17 13:11 martinmosegaard

Thank you for taking time time to file this issue.

This would be a good additional feature, but this work is not currently on our roadmap.

If this is something you or anybody in the community would like to contribute, however, please feel free to open a pull request!

marcparadise avatar Dec 16 '20 18:12 marcparadise