@prana-w/btw
Version:
btw_cli (btw: by-the-W) is a simple and powerful Command Line Interface (CLI) designed to help you perform various useful tasks directly from your terminal.
57 lines (54 loc) • 1.42 kB
JavaScript
const addTaskToGoogleCalPrompts = [
{
type: 'input',
name: 'title',
message: 'What is the title of your task?',
initial: 'My Task',
},
{
type: 'input',
name: 'description',
message: 'What is the description of your task?',
initial: 'My Task Description',
},
{
type: 'input',
name: 'start',
message: 'When does your task start?',
initial:
'Leave blank for current time and edit later. Examples: 1d, 2w, etc',
},
];
const sapCredentialsPrompts = [
{
type: 'input',
name: 'username',
message: 'Enter your Username/Roll Number:',
required: true,
format: (value) => {
return value.toUpperCase();
},
validate: (value) => {
if (!value) {
return 'Kindly enter username to proceed!';
}
return true;
},
result: (value) => {
return value.toUpperCase();
},
},
{
type: 'password',
name: 'password',
message: 'Enter your Password for SAP Portal:',
required: true,
validate: (value) => {
if (!value) {
return 'Kindly enter password to proceed!';
}
return true;
},
},
];
export { addTaskToGoogleCalPrompts, sapCredentialsPrompts };