Skip to content

DeoDorqnt387/vin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vin

A Simple Command Line Interface for V

demo.webm

Installation

v install --git https://github.com/DeoDorqnt387/vin

Example Usage

import vin { display_question, Question }

fn main() {
    questions := [
        Question{
            type: "list",
            prompt: "What is your favorite programming lang?",
            choices: ["VLang", "GoLang", "Ruby", "Rust", "Python"]
        },
        Question{
            type: "input",
            prompt: "Which game do you like the most?",
        },
        Question{
            type: "confirm",
            prompt: "Confirm?",
        },
        Question{
            type: "password",
            prompt: "Your password!",
        },
    ]
    
    for q in questions {
        answer := display_question(q) or { panic(err) return }
        println("You selected ${answer}")
    }
}

About

A Command Line Interface for V

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages