Skip to content

PDK: incorrect example of invocation of pdk get config #1172

Open
@hbrown-uiowa

Description

@hbrown-uiowa

Describe the Bug

Sample code is incorrect on https://www.puppet.com/docs/pdk/3.x/pdk_reference
The documentation lists this as the example for getting a config value: pdk config get user.module_defaults.author
If I run the command, I get pdk: unknown command 'config'

Expected Behavior

I expect to see the value of user.module_defaults.author.

Steps to Reproduce

Steps to reproduce the behavior:

  1. pdk new module foo
  2. cd foo
  3. pdk config get user.module_defaults.author

Environment

  • $ pdk --version
    3.3.0

  • Fedora 40

Additional Context

The documentation for 2.x has a similar problem and also tries to reference a key that does not exist

$ pdk get config user.analytics.disabled
pdk (ERROR): Configuration item 'user.analytics.disabled' does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedThis ticket has been accepted to our backlog and migrated internally

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions