Rename printers

pull/46/head
Josselin 6 years ago
parent 1c5f48affe
commit c3c8e74ee9
  1. 8
      slither/__main__.py
  2. 6
      slither/printers/summary/contract.py
  3. 6
      slither/printers/summary/function.py

@ -113,14 +113,14 @@ def main():
UnusedStateVars,
TxOrigin]
from slither.printers.summary.summary import PrinterSummary
from slither.printers.summary.quick_summary import PrinterQuickSummary
from slither.printers.summary.function import FunctionSummary
from slither.printers.summary.contract import ContractSummary
from slither.printers.inheritance.inheritance import PrinterInheritance
from slither.printers.functions.authorization import PrinterWrittenVariablesAndAuthorization
from slither.printers.summary.slithir import PrinterSlithIR
printers = [PrinterSummary,
PrinterQuickSummary,
printers = [FunctionSummary,
ContractSummary,
PrinterInheritance,
PrinterWrittenVariablesAndAuthorization,
PrinterSlithIR]

@ -5,10 +5,10 @@
from slither.printers.abstract_printer import AbstractPrinter
from slither.utils.colors import blue, green, magenta
class PrinterQuickSummary(AbstractPrinter):
class ContractSummary(AbstractPrinter):
ARGUMENT = 'quick-summary'
HELP = 'a quick summary of the contract'
ARGUMENT = 'contract-summary'
HELP = 'a summary of the contract'
def output(self, _filename):
"""

@ -5,10 +5,10 @@
from prettytable import PrettyTable
from slither.printers.abstract_printer import AbstractPrinter
class PrinterSummary(AbstractPrinter):
class FunctionSummary(AbstractPrinter):
ARGUMENT = 'summary'
HELP = 'the summary of the contract'
ARGUMENT = 'function-summary'
HELP = 'the summary of the functions'
@staticmethod
def _convert(l):
Loading…
Cancel
Save