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

allow multiple sources #2

Open
ColdIV opened this issue Aug 3, 2022 · 3 comments
Open

allow multiple sources #2

ColdIV opened this issue Aug 3, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ColdIV
Copy link
Member

ColdIV commented Aug 3, 2022

There should be an option to add multiple sources.
It could be something like this:

  • scm source add <scriptName> <sourceName> <source>
  • scm source get <scriptName>
  • scm source remove <scriptName> <sourceName>
  • scm update <scriptName> <sourceName>

Every script should have a default source (probably the first that has been added) which will be updated from if no source is specified.
You could then download a program from GitHub with scm get exampleProgram and add a pastebin script as additional source with scm source add exampleProgram pb exampleProgram@abc123.
Then you could update the script from pastebin with: scm update exampleProgram pb.

@ColdIV ColdIV added the enhancement New feature or request label Aug 3, 2022
@ColdIV ColdIV self-assigned this Aug 3, 2022
@ColdIV
Copy link
Member Author

ColdIV commented Aug 8, 2022

There should also be an option to change the default source

  • source default <name>
    The old default source should get a temp name which can be changed with
  • source set <name> <new source>

@ColdIV ColdIV removed their assignment Sep 3, 2022
@ColdIV
Copy link
Member Author

ColdIV commented Sep 3, 2022

Removed myself as an assignee, as I am working on other things right now.

@ColdIV ColdIV removed the help wanted Extra attention is needed label Apr 29, 2023
@ChristophLHR ChristophLHR self-assigned this May 12, 2023
@ChristophLHR
Copy link
Member

Update:
for SCM commands, the scource-name will be replaced with an id, which is stored in the scm-scripts.json and should be listed.

The new folder stucture should become:
libs > stableEventHandler-lib > 1 [die ID] > default [versions-Support] > ...[all files]

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: Parked
Development

No branches or pull requests

2 participants