šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/whisperingchaos/argp

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/whisperingchaos/argp

v0.0.0-20190617022212-d1dd7f3d0dd4
Source
Go
Version published
Created
Source

GoDoc Codeship Status for WhisperingChaos/argp go report card MIT Licence

argp

Implements the partitioning performed by a Linux command shell of its command line input into tokens. However, it decouples reading input by accepting any source that implements the io.Reader interface. Furthermore, it can be called anytime while executing a process and it decouples the tokenized output from os.Args, so any array variable can accept the processed tokens.

After tokenizing input further processing is required to characterize each token as either an option (flag), an option value, or argument. The go flag package offers this functionality.

Install

go get github.com/WhisperingChaos/argp

Motivation

Enables development of a uniform console language that's consumable both when starting a process and during its execution. This could be valuable, for example, to record and playback an interactive console conversation between an end user and the console process. Therefore, instead of creating a different configuration file syntax, the console language would be used to configure the console.

FAQs

Package last updated on 17 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts