Add maxAccessCount to send command (#298)
This commit is contained in:
parent
14ad6c06f2
commit
5edd0a2c76
|
@ -60,8 +60,10 @@ export class SendCreateCommand {
|
|||
const text = req.text?.text ?? options.text;
|
||||
const hidden = req.text?.hidden ?? options.hidden;
|
||||
const password = req.password ?? options.password;
|
||||
const maxAccessCount = req.maxAccessCount ?? options.maxAccessCount;
|
||||
|
||||
req.key = null;
|
||||
req.maxAccessCount = maxAccessCount;
|
||||
|
||||
switch (req.type) {
|
||||
case SendType.File:
|
||||
|
|
|
@ -47,6 +47,7 @@ export class SendProgram extends Program {
|
|||
})
|
||||
.option('-f, --file', 'Specifies that <data> is a filepath')
|
||||
.option('-d, --deleteInDays <days>', 'The number of days in the future to set deletion date, defaults to 7', '7')
|
||||
.option('-a, --maxAccessCount <amount>', 'The amount of max possible accesses.')
|
||||
.option('--hidden', 'Hide <data> in web by default. Valid only if --file is not set.')
|
||||
.option('-n, --name <name>', 'The name of the Send. Defaults to a guid for text Sends and the filename for files.')
|
||||
.option('--notes <notes>', 'Notes to add to the Send.')
|
||||
|
|
Loading…
Reference in New Issue