@intocode-io/fireliff-cli
Version:
Command line interface for building LIFF app on Firebase
45 lines (43 loc) • 1.3 kB
JavaScript
import { EOL } from 'os';
import './colors-set-theme';
export default [
{
header: 'Add LIFF view'.help,
content:
`Add LIFF using view ${'--name'.code} and ${
'--url'.code
} options. We make ${
'--type'.code
} option as optional in FireLIFF CLI to shorten the command line. So you can omit ${
'--type'.code
}, it will be ${'full'.code} by default.` +
EOL +
EOL +
`fliff add --name ${'<viewName>'.input} --url ${'<viewUrl>'.input}`.code +
EOL +
`fliff add --name ${'<viewName>'.input} --url ${
'<viewUrl>'.input
} --type ${'<viewType>'.input}`.code,
},
{
header: 'Options',
optionList: [
{
name: 'name'.code,
typeLabel: '{underline viewName}'.input,
description:
'View name will be convert to lowercase and save to Functions. Original name will be save as description (Name) in LINE Developer Console.',
},
{
name: 'url'.code,
typeLabel: '{underline viewUrl}'.input,
description: 'URL to navigate to after User visit the LIFF app',
},
{
name: 'type'.code,
typeLabel: '{underline viewType}'.input,
description: 'View type can be full, tall or compact.',
},
],
},
];