Giter VIP home page Giter VIP logo

hwx-cli's Introduction

inquirer

// const prompList = [
// 	{
// 		type:'input',
// 		message:'姓名',
// 		name:'name'
// 	},{
// 		type:'input',
// 		message:'手机号',
// 		name:'phone',
// 		validate:val=>{
// 			if(val.match(/\d{11}/g)){
// 				return true
// 			}
// 			return '请输入11位数字'
// 		}
// 	},{
// 		type:'confirm',
// 		message:'是否参加本次考核?',
// 		name:'assess',
// 		prefix:'前缀'
// 	},{
// 		type:'confirm',
// 		message:'是否同意本次考核须知?',
// 		name:'notice',
// 		suffix:'后缀',
// 		when:answers=>{
// 			return answers.assess
// 		}
// 	},{
// 		type:'list',
// 		message:'欢迎来到本次考核,请选择学历:',
// 		name:'eductionBg',
// 		choices:[
// 			"大专",
// 			"本科",
// 			"本科以上"
// 		],
// 		filter:val=>{//将选择的内容后面加学历
// 			return val+'学历'
// 		}
// 	},{
// 		type:'rawlist',
// 		message:'请选择你爱玩的游戏:',
// 		name:'game',
// 		choices:[
// 			"LOL",
// 			"DOTA",
// 			"PUBG"
// 		]
// 	},{
// 		type:'expand',
// 			message:'请选择你喜欢的水果:',
// 			name:'fruit',
// 			choices: [
// 			{
// 				key: "a",
// 				name: "Apple",
// 				value: "apple"
// 			},
// 			{
// 				key: "O",
// 				name: "Orange",
// 				value: "orange"
// 			},
// 			{
// 				key: "p",
// 				name: "Pear",
// 				value: "pear"
// 			}
// 		]
// 	},{
// 		type:'checkbox',
// 		message:'请选择你喜欢的颜色:',
// 		name:'color',
// 		choices:[
// 			{
// 				name: "red"
// 			},
// 			new inquirer.Separator(), // 添加分隔符
// 			{
// 				name: "blur",
// 				checked: true // 默认选中
// 			},
// 			{
// 				name: "green"
// 			},
// 			new inquirer.Separator("--- 分隔符 ---"), // 自定义分隔符
// 			{
// 				name: "yellow"
// 			}
// 		]
// 	},{
// 		type:'password',
// 		message:'请输入你的游戏密码:',
// 		name:'pwd'
// 	}
// ]

hwx-cli's People

Contributors

2017hwx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.