mirror of https://github.com/nucypher/nucypher.git
Restore console bannering
parent
00fff9ca71
commit
2bdddfceac
|
@ -4,6 +4,7 @@ from base64 import b64encode
|
|||
import click
|
||||
import maya
|
||||
|
||||
from nucypher.characters.banners import ALICE_BANNER
|
||||
from nucypher.characters.control.emitters import IPCStdoutEmitter
|
||||
from nucypher.cli import actions, painting
|
||||
from nucypher.cli.config import nucypher_click_config
|
||||
|
@ -60,6 +61,9 @@ def alice(click_config,
|
|||
Start and manage an "Alice" character.
|
||||
"""
|
||||
|
||||
if not click_config.json_ipc and not click_config.quiet:
|
||||
click.secho(ALICE_BANNER)
|
||||
|
||||
if action == 'init':
|
||||
"""Create a brand-new persistent Alice"""
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
from base64 import b64encode
|
||||
|
||||
import click
|
||||
|
||||
from nucypher.characters.banners import BOB_BANNER
|
||||
from nucypher.characters.control.emitters import IPCStdoutEmitter
|
||||
from nucypher.cli import actions, painting
|
||||
from nucypher.cli.config import nucypher_click_config
|
||||
|
@ -56,6 +55,9 @@ def bob(click_config,
|
|||
Start and manage a "Bob" character.
|
||||
"""
|
||||
|
||||
if not click_config.json_ipc and not click_config.quiet:
|
||||
click.secho(BOB_BANNER)
|
||||
|
||||
if action == 'init':
|
||||
"""Create a brand-new persistent Bob"""
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import click
|
||||
from umbral.keys import UmbralPublicKey
|
||||
|
||||
from nucypher.characters.banners import ENRICO_BANNER
|
||||
from nucypher.characters.control.emitters import IPCStdoutEmitter
|
||||
from nucypher.characters.lawful import Enrico
|
||||
from nucypher.cli.config import nucypher_click_config
|
||||
|
@ -22,6 +23,9 @@ def enrico(click_config, action, policy_encrypting_key, dry_run, http_port, mess
|
|||
if not policy_encrypting_key:
|
||||
raise click.BadArgumentUsage('--policy-encrypting-key is required to start Enrico.')
|
||||
|
||||
if not click_config.json_ipc and not click_config.quiet:
|
||||
click.secho(ENRICO_BANNER)
|
||||
|
||||
policy_encrypting_key = UmbralPublicKey.from_bytes(bytes.fromhex(policy_encrypting_key))
|
||||
ENRICO = Enrico(policy_encrypting_key=policy_encrypting_key)
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import click
|
||||
from constant_sorrow import constants
|
||||
from nucypher.characters.banners import MOE_BANNER
|
||||
|
||||
from nucypher.characters.chaotic import Moe
|
||||
from nucypher.cli import actions
|
||||
|
@ -23,6 +24,9 @@ def moe(click_config, teacher_uri, min_stake, network, ws_port, dry_run, http_po
|
|||
"Moe" NuCypher node monitor CLI.
|
||||
"""
|
||||
|
||||
if not click_config.json_ipc and not click_config.quiet:
|
||||
click.secho(MOE_BANNER)
|
||||
|
||||
# Teacher Ursula
|
||||
teacher_uris = [teacher_uri] if teacher_uri else list()
|
||||
teacher_nodes = actions.load_seednodes(teacher_uris=teacher_uris,
|
||||
|
|
|
@ -19,14 +19,15 @@ along with nucypher. If not, see <https://www.gnu.org/licenses/>.
|
|||
import os
|
||||
|
||||
import click
|
||||
from constant_sorrow import constants
|
||||
from constant_sorrow.constants import NO_BLOCKCHAIN_CONNECTION
|
||||
from constant_sorrow.constants import TEMPORARY_DOMAIN
|
||||
from twisted.internet import stdio
|
||||
from twisted.logger import Logger
|
||||
from twisted.logger import globalLogPublisher
|
||||
|
||||
from constant_sorrow import constants
|
||||
from constant_sorrow.constants import NO_BLOCKCHAIN_CONNECTION
|
||||
from constant_sorrow.constants import TEMPORARY_DOMAIN
|
||||
from nucypher.blockchain.eth.constants import MIN_LOCKED_PERIODS, MAX_MINTING_PERIODS
|
||||
from nucypher.characters.banners import URSULA_BANNER
|
||||
from nucypher.cli import actions
|
||||
from nucypher.cli.actions import destroy_system_configuration
|
||||
from nucypher.cli.config import nucypher_click_config
|
||||
|
@ -43,8 +44,8 @@ from nucypher.config.characters import UrsulaConfiguration
|
|||
from nucypher.utilities.logging import (
|
||||
logToSentry,
|
||||
getJsonFileObserver,
|
||||
GlobalConsoleLogger
|
||||
)
|
||||
GlobalConsoleLogger,
|
||||
SimpleObserver)
|
||||
|
||||
|
||||
@click.command()
|
||||
|
@ -131,6 +132,9 @@ def ursula(click_config,
|
|||
globalLogPublisher.removeObserver(SimpleObserver)
|
||||
globalLogPublisher.removeObserver(getJsonFileObserver())
|
||||
|
||||
if not click_config.json_ipc and not click_config.quiet:
|
||||
click.secho(URSULA_BANNER)
|
||||
|
||||
#
|
||||
# Pre-Launch Warnings
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue