ernestio / ernest

Ernest is a tool to define, manage and collaborate on your infrastructure
http://ernest.io/
Mozilla Public License 2.0
17 stars 6 forks source link

CLI flag / argument unification #884

Open adriacidre opened 6 years ago

adriacidre commented 6 years ago

Preamble

Idea: <to be assigned>
Title: CLI flag / argument unification
Status: Draft
Created: 2018-02-19

Summary

Unify where flags and arguments are defined on the cli and interactive cli.

Product Overview

Since the introduction of interactive cli and as its basically parsing flags and arguments and redirecting them to the basic cli commands, there is a duplication on where those flags and arguments are defined. The idea is to have a config file with a struct similar to this so both cli and icli are able to parse input arguments and flags.

Requirements & Dependancies

This issue is blocked by Standard cli flag definition

Minimum Viable Product

The MVP will be having a CLI passing all integration tests where flags and arguments for each command are defined by the same code. We should probably split this issue on smaller issues foreach command or subset of commands.