mirror of
https://github.com/onyx-and-iris/meld-cli.git
synced 2025-07-12 02:11:46 +00:00
27 lines
498 B
JavaScript
27 lines
498 B
JavaScript
import meowHelp from 'cli-meow-help'
|
|
|
|
const clipHelp = meowHelp({
|
|
name: 'meld-cli clip',
|
|
desc: 'Manage clips in Meld',
|
|
commands: {
|
|
save: {
|
|
desc: 'Save a clip'
|
|
}
|
|
},
|
|
flags: {
|
|
help: {
|
|
type: 'boolean',
|
|
shortFlag: 'h',
|
|
desc: 'Display help information'
|
|
}
|
|
},
|
|
defaults: false
|
|
})
|
|
|
|
async function saveClip (channel) {
|
|
await channel.objects.meld.sendCommand('meld.recordClip')
|
|
return 'Clip command sent successfully.'
|
|
}
|
|
|
|
export { clipHelp, saveClip }
|