Refactorint : create ConsoleBase with commun commands