mirror of
https://github.com/onyx-and-iris/meld-cli.git
synced 2025-07-12 02:11:46 +00:00
27 lines
539 B
JavaScript
27 lines
539 B
JavaScript
import meowHelp from 'cli-meow-help'
|
|
|
|
const screenshotHelp = meowHelp({
|
|
name: 'meld-cli screenshot',
|
|
desc: 'Manage screenshots in Meld',
|
|
commands: {
|
|
take: {
|
|
desc: 'Take a screenshot'
|
|
}
|
|
},
|
|
flags: {
|
|
help: {
|
|
type: 'boolean',
|
|
shortFlag: 'h',
|
|
desc: 'Display help information'
|
|
}
|
|
},
|
|
defaults: false
|
|
})
|
|
|
|
async function screenshotTake (channel) {
|
|
await channel.objects.meld.sendCommand('meld.screenshot')
|
|
return 'Screenshot taken successfully.'
|
|
}
|
|
|
|
export { screenshotHelp, screenshotTake }
|