nautobot / cookiecutter-nautobot-app

Cookiecutter template for creating new Nautobot Apps.
https://docs.nautobot.com/projects/cookiecutter-nautobot-app/en/latest/
Apache License 2.0
16 stars 5 forks source link

Remove leading `nautobot-` in `project_slug`, `base_url` and `docs_app_url` #197

Open gsnider2195 opened 3 hours ago

gsnider2195 commented 3 hours ago

These defaults should be updated so that accepting all defaults bakes a valid project. See below output for example.

  [1/18] codeowner_github_usernames (): 
  [2/18] full_name (Network to Code, LLC): 
  [3/18] email (info@networktocode.com): 
  [4/18] github_org (nautobot): 
  [5/18] app_name (my_app): nautobot_test_models
  [6/18] verbose_name (Nautobot Test Models): 
  [7/18] app_slug (nautobot-test-models): 
  [8/18] project_slug (nautobot-app-nautobot-test-models): nautobot-app-test-models
  [9/18] repo_url (https://github.com/nautobot/nautobot-app-test-models): 
  [10/18] base_url (nautobot-test-models): test-models
  [11/18] min_nautobot_version (2.0.0): 
  [12/18] max_nautobot_version (2.9999): 
  [13/18] camel_name (NautobotTestModels): 
  [14/18] project_short_description (Nautobot Test Models): 
  [15/18] Camel case name of the model class to be created, enter None if no model is needed (NautobotTestModelsExampleModel):
  [16/18] Select open_source_license
    1 - Apache-2.0
    2 - Not open source
    Choose from [1/2] (1): 1
  [17/18] docs_base_url (https://docs.nautobot.com): 
  [18/18] docs_app_url (https://docs.nautobot.com/projects/nautobot-test-models/en/latest): https://docs.nautobot.com/projects/test-models/en/latest
smk4664 commented 2 hours ago

This is because you have nautobot in the app_name. The example shows just using my_app, which would produce the results you are asking for.