1. 17 Oct, 2014 1 commit
  2. 02 Oct, 2014 1 commit
    • Stavros Sachtouris's avatar
      Escape characters in CLI output methods · 5852db11
      Stavros Sachtouris authored
      Closes grnet/kamaki#32
      
      Kamaki CLI commands use some generic output methods to handle outputs.
      
      Generic output methods that escape control characters:
      - in kamaki.cli.utils: print_items, print_dict, print_list
      - in kamaki.cli.cmds: error
      
      Generic output methods that don't escape control characters:
      - in kamaki.cli.cmds: writeln, write
      
      The methods that don't escape control characters are used when the
      standard methods are not sufficient. For example, in "kamaki.cli.pithos"
      the "PithosAccount.print_objects" method adds decorative escape characters
      (i.e., bold, alignment), but has to escape the parts object and container
      names. To achieve this, escaping is handled in the method, and the output
      is printed with the "write" and "writeln" methods mentioned earlier.
      
      An encoding issue with kamaki.cli.errors.CLIError and the Exceptions extending it,
      is fixed. It is now ensured that the error message will always be in unicode.
      
      Also, fix flake8 errors on files affected by the above changes
      5852db11
  3. 21 May, 2014 3 commits
    • Stavros Sachtouris's avatar
      Modify module methods in kamaki.cli classes · 97659673
      Stavros Sachtouris authored
      Refs #9
      
      Renamed to comply with pep8:
      kamaki.cli.config.Config: _cloud_name --> cloud_name
      kamaki.cli.shell: _init_shell --> init_shell
      
      Merged with caller methods because they where used only once:
      kamaki.cli: _construct_command_syntax, _num_of_matching_terms
      kamaki.cli.utils: _parse_with_regex
      kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree
      
      Remove now unused method _num_of_matching_terms
      97659673
    • Stavros Sachtouris's avatar
      Localise missused globals in kamaki.cli · 74690507
      Stavros Sachtouris authored
      The following variables are now used only inside the module or
      method they are defined: _help, _debug, _verbose, _color, filelog
      74690507
    • Stavros Sachtouris's avatar
      Merge classes _optional_output_cmd, _optional_json · a0677c5c
      Stavros Sachtouris authored
      New class is called "OptionalOutput"
      Old and new classes were/are located at kamaki.cli.cmds
      a0677c5c
  4. 03 Apr, 2014 1 commit
  5. 01 Apr, 2014 1 commit
  6. 17 Mar, 2014 1 commit
  7. 28 Feb, 2014 1 commit
  8. 27 Feb, 2014 3 commits
  9. 26 Feb, 2014 3 commits
  10. 11 Dec, 2013 1 commit
  11. 10 Dec, 2013 2 commits
  12. 13 Sep, 2013 1 commit
  13. 12 Sep, 2013 2 commits
  14. 09 Sep, 2013 1 commit
  15. 06 Sep, 2013 1 commit
  16. 28 Aug, 2013 1 commit
  17. 23 Aug, 2013 1 commit
  18. 22 Aug, 2013 1 commit
  19. 21 Aug, 2013 1 commit
  20. 20 Aug, 2013 1 commit
  21. 09 Aug, 2013 1 commit
  22. 08 Aug, 2013 2 commits
  23. 07 Aug, 2013 1 commit
  24. 31 Jul, 2013 1 commit
  25. 19 Jul, 2013 1 commit
  26. 27 Jun, 2013 1 commit
  27. 26 Jun, 2013 1 commit
  28. 25 Jun, 2013 2 commits
  29. 19 Jun, 2013 2 commits