diff options
| author | Paul Buetow <paul@buetow.org> | 2025-05-17 17:16:05 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-05-17 17:16:05 +0300 |
| commit | dca352a42795b5e4b7da11d47d099de92e08bd89 (patch) | |
| tree | b1b2e823ed61358ce9c10dd8e6dc318bed5f8144 /internal/platforms | |
| parent | 070bde0567b24c67ab4f8556d8ea2f04c055d2d9 (diff) | |
add noop
Diffstat (limited to 'internal/platforms')
| -rw-r--r-- | internal/platforms/platform.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/platforms/platform.go b/internal/platforms/platform.go index 874c35d..99169f1 100644 --- a/internal/platforms/platform.go +++ b/internal/platforms/platform.go @@ -10,6 +10,7 @@ import ( "codeberg.org/snonux/gos/internal/entry" "codeberg.org/snonux/gos/internal/platforms/linkedin" "codeberg.org/snonux/gos/internal/platforms/mastodon" + "codeberg.org/snonux/gos/internal/platforms/noop" ) type Platform string @@ -19,6 +20,8 @@ var aliases = map[string]string{ "li": "linkedin", "mastodon": "mastodon", "ma": "mastodon", + "no": "noop", + "noop": "noop", "xcom": "xcom", "x": "xcom", "twitter": "xcom", @@ -45,6 +48,8 @@ func (p Platform) Post(ctx context.Context, args config.Args, sizeLimit int, en err = mastodon.Post(ctx, args, sizeLimit, en) case "linkedin": err = linkedin.Post(ctx, args, sizeLimit, en) + case "noop": + err = noop.Post(ctx, args, sizeLimit, en) default: err = fmt.Errorf("Platform '%s' (not yet) implemented", p) } |
