question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove required argument from the template command

See original GitHub issue

Is your feature request related to a problem? Please describe.

Running perla templates without arguments should show the table of the current templates available for perla’s scaffolding features, but currently it requires an argument (namely the template name for the rest of the operations related to templates)

Describe the solution you’d like We should make the required templateName optional, and just default to show the list of existing templates available for perla.

In regards of the information of the table it currently displays the following columns:

  • Name
  • Group
  • Belongs To
  • Parent Location
  • Last Update

Taking feedback from #118 I’m considering using the following columns instead:

  • Name
  • perla new <project> -t
  • perla new <project> -id
  • perla new <project> -tn

e.g.

Name perla new <project> -t perla new <project> -id perla new <project> -tn
Fable Feliz perla new -t ff perla new -id perla.templates.fable.feliz perla new -tn AngelMunoz/perla-templates/fable-feliz
Fable Sutil perla new -t fs perla new -id perla.templates.fable.sutil perla new -tn perla-templates/fable-sutil

One potential issue here is that -tn can be provided partially or fully annotated. The shorthand form (no GH user) in the example it works because there is a single repository with the perla-templates name, the following wouldn’t work and you will need to provide the full name:

  • AngelMunoz/perla-templates
  • fable-compiler/perla-templates

So we could remove that option completely at least for users

Describe alternatives you’ve considered A Wizard-like experience for templates as well, perla template runs a wizard-like experience just as perla new does

  • What would you like to do?
    • List Templates
    • Add Template
    • Update Template
    • Remove Template
    • Describe Template
    • Describe Repository

Additional context

Reported in #118 cc @kaeedo

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AngelMunozcommented, Apr 24, 2023

This is out in beta 21!

0reactions
AngelMunozcommented, Apr 18, 2023

Yep, that sounds good!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable/Remove argument in argparse - python
Is it possible to remove or disable an argument in argparse, such that it does not show in the help? Set help to...
Read more >
How to remove need for arguments in python sample code?
This is the section of code that you could change. Code: Select all if __name__ == '__main__': argparser.add_argument("--file", required=True, ...
Read more >
Removing C++ template arguments from a C++ function ...
I'm wondering if I can improve it, shorten it, and make it more pythonic. def removeTemplateArguments(str, depthToRemove): """ Remove template ...
Read more >
Remove `helmfile --args` · Issue #1804
A helmfile template command involves many commands depending on your configuration, not only the helm template to render the final result but also...
Read more >
C# console app template generates top-level statements
NET 6+ project template for C# console apps uses top-level statements. ... You can access args (command-line arguments), use await , and set ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found