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

Implement a Plugin System for App-Specific Resource Kinds and Commands #69

Open
tareknaser opened this issue May 28, 2024 · 0 comments
Open

Comments

@tareknaser
Copy link
Collaborator

Description

Currently, ark-cli defines methods and commands to handle links in the ark managed storage folder. We should consider a cleaner and more generic approach to allow applications depending on ark-rust to define app-specific resource kinds and related commands, handling them uniformly.

A potential solution is a plugin system. This would enable any app developer to create not only wrappers for each platform but also CLI commands related to the resource kinds they introduce. For example, .link is a custom file format defined by us that contains a Link to Web resource. It consists only of a URL, but we also define some metadata and possible properties for it, such as domain and title.

Related discussion: #67 (comment)

Proposed Tasks

  • Develop a plugin system to support app-specific resource kinds and commands.
  • Test this feature within the ark-cli link command.
  • Ensure the result is less code in ark-cli and a more straightforward approach.

This will enhance reusability by allowing easy reuse of app-specific resource kinds and commands, improve maintainability with cleaner and more manageable code, and increase extensibility by enabling developers to define their own resource kinds and commands.

Note: This proposal is open for discussion, and we do not have a full plan for it yet.

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

No branches or pull requests

1 participant