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

Create a command platform (Select-Many) #150

Open
plastikfan opened this issue Apr 19, 2021 · 2 comments
Open

Create a command platform (Select-Many) #150

plastikfan opened this issue Apr 19, 2021 · 2 comments
Assignees
Labels
feature New feature or request

Comments

@plastikfan
Copy link
Collaborator

Currently, Rename-Mamy is a big command. A lot of it is generic and could apply to other new commands. Current, if a new command is designed, it would have to be modelled on Rename-Many so that it contains all of its generic features, such as:

  • using the bootstrap and registering specs with it
  • get signals
  • getting locked status
  • termiinating error handling

It would be useful to have this all wrapped in an easily re-useable class. This would be akin to an Application class

@plastikfan plastikfan added the feature New feature or request label Apr 19, 2021
@plastikfan plastikfan self-assigned this Apr 19, 2021
@plastikfan
Copy link
Collaborator Author

plastikfan commented Jul 26, 2021

Perhaps we should have a provider class. The class would implement a lot of what's in Rename-Many and Rename-Many would simply use the provder. The provider could be used in many contexts, not just for renaming. The rename would become a plugin (via transform perhaps).

The only slight downside of this approach is the 'class' issue. Initially, one might think that the provider class should go into Klassy, but because it would depend on the Loopz iterators (eg invoke-foreachFsItem) this would not be possible. However, since Loopz is a platform module for the likes of Elizium.Bulk/RexFS, leaving it inside Loopz instead of implementing it in Klassy would be justr fine.

The provider class could be wrapped up in a new command: Select-Many and would become the platform for all other commands.

@plastikfan plastikfan changed the title Create a command platform Create a command platform (Select-Many) Jul 29, 2021
@plastikfan
Copy link
Collaborator Author

Move this to RexFs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant