RPKI Engine 1.0
Classes | Functions | Variables

Package rpki.cli

Classes

class  Cmd

Functions

def yes_or_no

Variables

dictionary _yes_or_no_prompts
 have_readline = True

Detailed Description

Utilities for writing command line tools.

$Id: cli.py 3255 2010-05-20 03:03:48Z sra $

Copyright (C) 2010  Internet Systems Consortium ("ISC")

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

Function Documentation

def rpki.cli.yes_or_no (   prompt,
  default = None,
  require_full_word = False 
)
Ask a yes-or-no question.

Definition at line 157 of file cli.py.


Variable Documentation

Initial value:
00001 {
00002   True  : ' ("yes" or "no" ["yes"]) ',
00003   False : ' ("yes" or "no" ["no"]) ',
00004   None  : ' ("yes" or "no") ' }

Definition at line 172 of file cli.py.

Definition at line 25 of file cli.py.

 All Classes Namespaces Files Functions Variables