UNPKG

1.14 kBJavaScriptView Raw
1#!/usr/bin/env node
2'use strict';
3const program = require('commander');
4const opn = require('opn');
5
6console.log("__ __ _ __ _ ____ ____ ____ _ _ __ __ ____ ____ ____ ____ __ _ __ ____ _ _ \r\n\\ \\\/ \/| || \\| || ===|| ===| (_ (_`| |_| | \\ \\\/\\\/ \/| ===|| _) \\ (_ (_` \/ () \\ | \\| |__) | \/ () \\ | |__ | |\r\n \\__\/ |_||_|\\__||____||____|.__)__)|_| |_| \\_\/\\_\/ |____||____\/.__)__) \/__\/\\__\\|_|\\__|\\___\/\/__\/\\__\\|____||_|")
7program
8 .version('0.0.1')
9 .option('-l, --location', 'Get location')
10 .option('-b, --bride', 'Bride details')
11 .option('-g, --groom', 'Groom details')
12 .option('-d, --date', 'Date of marriage')
13 .parse(process.argv);
14
15if(program.location) {
16 console.log("Location: Madayi Cooperative Rural Bank Auditorium \n")
17 opn("https://www.google.co.in/maps/dir/''/''/data=!4m5!4m4!1m0!1m2!1m1!1s0x3ba414b6d4b9066d:0xab737784febcb1d4?sa=X&ved=0ahUKEwj8qq_sqpTTAhWKqo8KHfxGAAsQ9RcICzAA")
18}
19if (program.date) {
20 console.log("Date: 9th April 2017")
21}
22
23if (program.bride) {
24 console.log("Anjali")
25}
26
27if(program.groom) {
28 console.log("Vineesh")
29}