/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/ui/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
Several levels are supported, and you can also register new factories such as
23
23
for a GUI.
24
24
 
25
 
brzlib.ui.UIFactory
 
25
breezy.ui.UIFactory
26
26
    Semi-abstract base class
27
27
 
28
 
brzlib.ui.SilentUIFactory
 
28
breezy.ui.SilentUIFactory
29
29
    Produces no output and cannot take any input; useful for programs using
30
 
    brzlib in batch mode or for programs such as loggerhead.
 
30
    breezy in batch mode or for programs such as loggerhead.
31
31
 
32
 
brzlib.ui.CannedInputUIFactory
 
32
breezy.ui.CannedInputUIFactory
33
33
    For use in testing; the input values to be returned are provided 
34
34
    at construction.
35
35
 
36
 
brzlib.ui.text.TextUIFactory
 
36
breezy.ui.text.TextUIFactory
37
37
    Standard text command-line interface, with stdin, stdout, stderr.
38
38
    May make more or less advanced use of them, eg in drawing progress bars,
39
39
    depending on the detected capabilities of the terminal.
45
45
 
46
46
import warnings
47
47
 
48
 
from brzlib.lazy_import import lazy_import
 
48
from breezy.lazy_import import lazy_import
49
49
lazy_import(globals(), """
50
 
from brzlib import (
 
50
from breezy import (
51
51
    config,
52
52
    osutils,
53
53
    progress,
454
454
    """A UI Factory which never prints anything.
455
455
 
456
456
    This is the default UI, if another one is never registered by a program
457
 
    using brzlib, and it's also active for example inside 'brz serve'.
 
457
    using breezy, and it's also active for example inside 'brz serve'.
458
458
 
459
459
    Methods that try to read from the user raise an error; methods that do
460
460
    output do nothing.
522
522
    """
523
523
    # this is now always TextUIFactory, which in turn decides whether it
524
524
    # should display progress bars etc
525
 
    from brzlib.ui.text import TextUIFactory
 
525
    from breezy.ui.text import TextUIFactory
526
526
    return TextUIFactory(stdin, stdout, stderr)
527
527
 
528
528