feat: import snippets from network (#510)

Fixes #507
This commit is contained in:
lollipopkit🏳️‍⚧️
2024-08-03 14:25:58 +08:00
committed by GitHub
parent 0e21755acb
commit b8e5418ff2
6 changed files with 76 additions and 14 deletions

View File

@@ -183,6 +183,14 @@ class Snippet implements TagPickable {
r'${ctrl': TerminalKey.control,
r'${alt': TerminalKey.alt,
};
static const example = Snippet(
name: 'example',
script: 'echo hello',
tags: ['tag'],
note: 'note',
autoRunOn: ['server_id'],
);
}
class SnippetResult {