Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add functional templating with variable parameters #164

Open
stuntguy3000 opened this issue Dec 26, 2024 · 0 comments
Open

[FEATURE] Add functional templating with variable parameters #164

stuntguy3000 opened this issue Dec 26, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@stuntguy3000
Copy link

stuntguy3000 commented Dec 26, 2024

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

Snippets are community used to store commands which contain any number of parameters.

For Example:

Get-ADComputer
   [-AuthType <ADAuthType>]
   [-Credential <PSCredential>]
    -Filter  <String>
   [-Properties <String[]>]
   [-ResultPageSize <Int32>]
    [-ResultSetSize <Int32>]
   [-SearchBase <String>]
   [-SearchScope <ADSearchScope>]
    [-Server <String>]
   [<CommonParameters>]

Whilst saving them in snippets are useful, it is tedious to have to manually every parameter value in an external text editor/by hand.

Describe the solution you'd like

I would like a way for ByteStash to prompt me to enter values to each parameter, then generate a block out output text I can use.

This could be achieved by emulating common String Formatting functions, where they allow parameters such as %s to be replaced with a value.

Get-ADComputer
   [-AuthType %s]
   [-Credential %s]
    -Filter %s
   [-Properties %s]
   [-ResultPageSize %s]
    [-ResultSetSize %s]
   [-SearchBase %s]
   [-SearchScope %s]
    [-Server %s]
   [<CommonParameters>]

This could be tricky to achieve, but I believe if this feature was added - it will significantly improve the usability, and speed of ByteStash in common developer and sysadmin workflows.

Hopefully this makes sense!

Describe alternatives you've considered

Using an external text editor to manually replace each variable is possible, but tedious.

Additional context

Add any other context or screenshots about the feature request here.

@stuntguy3000 stuntguy3000 added the enhancement New feature or request label Dec 26, 2024
@jordan-dalby jordan-dalby added this to the Backlog milestone Dec 30, 2024
@github-project-automation github-project-automation bot moved this to Backlog in ByteStash Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants