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

feat: allow to use role from URL/filepath #245

Merged
merged 1 commit into from
Apr 15, 2024
Merged

feat: allow to use role from URL/filepath #245

merged 1 commit into from
Apr 15, 2024

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Apr 3, 2024

This allows to set a role message to either a http/https URL or a filepath (prefixed with file://).

Solves #235

This allows to set a role message to either a http/https URL or a
filepath (prefixed with `file://`).

Solves #235

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 requested a review from toby as a code owner April 3, 2024 18:34
@caarlos0 caarlos0 added the enhancement New feature or request label Apr 3, 2024
@caarlos0 caarlos0 self-assigned this Apr 3, 2024
@@ -367,9 +367,16 @@ func (m *Mods) startCompletionCmd(content string) tea.Cmd {
}

for _, msg := range cfg.Roles[cfg.Role] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea what I role is in this context, but this change looks dope

@caarlos0 caarlos0 merged commit 258577c into main Apr 15, 2024
12 checks passed
@caarlos0 caarlos0 deleted the remote-role branch April 15, 2024 19:58
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants