1. 11 May, 2022 2 commits
    • Jakub Ružička's avatar
      Merge branch 'better-run' into 'master' · 7f2002bf
      Jakub Ružička authored
      run: improve command logging
      
      See merge request !107
      7f2002bf
    • Jakub Ružička's avatar
      run: improve command logging · efff6e6d
      Jakub Ružička authored
      Log commands by default on INFO log level and below.
      
      run(..., quiet=True) now logs on new VERBOSE_COMMAND log level which isn't printed
      by default but it's visible on VERBOSE and below.
      
      This hides uninteresting commands from default output while optionally
      showing them with -L verbose/-L debug.
      efff6e6d
  2. 10 May, 2022 2 commits
  3. 06 May, 2022 6 commits
    • Jakub Ružička's avatar
      Merge branch 'tee' into 'master' · 2a56dd81
      Jakub Ružička authored
      run: refactor run() for subprocess.run() / asyncio
      
      Closes #68
      
      See merge request !105
      2a56dd81
    • Jakub Ružička's avatar
      run: refactor run() for subprocess.run / asyncio · ebce2b41
      Jakub Ružička authored
      * align run() wrapper functionality and naming with subprocess.run()
        introduced in Python 3.5, making it a thin wrapper now
      * change parameter names for consistency with subprocess.run() and even
        subprocess_tee which is re-implemented here in a straightforward way
      * align CommandOutput with subprocess.CompletedProcess for consistency
      * finally support both stream and capture of stdout/stderr using asyncio
        with tee=True (new default, replaces old direct parameter)
      * don't log errors in run(), leave that to caller - simpler code
      
      Thanks to subprocess_tee authors for inspiration 
      
      Closes: #68
      ebce2b41
    • Jakub Ružička's avatar
      ex: refactor exceptions to use format() · 216151de
      Jakub Ružička authored
      This offers bigger flexibility such as accessing object attributes from
      exception messages
      
          msg_fmt = "{o.attr_a} and {o.attr_b}"
      
      Also rename exit_code to returncode for consistency with the subprocess
      module.
      216151de
    • Jakub Ružička's avatar
      Merge branch 'ci-update' into 'master' · 043b9253
      Jakub Ružička authored
      CI: add Ubuntu 22.0.4, drop Fedora 34 for libyang
      
      See merge request !104
      043b9253
    • Jakub Ružička's avatar
      CI: add Ubuntu 22.04 Jammy Jellyfish · be339d41
      Jakub Ružička authored
      be339d41
    • Jakub Ružička's avatar
      CI: drop Fedora 34 for libyang · 1a31bfd9
      Jakub Ružička authored
      F34 is going EOL in a month and upstream already dropped support due to
      f34-specific bugs complicating packaging.
      1a31bfd9
  4. 05 May, 2022 2 commits
  5. 03 May, 2022 4 commits
  6. 27 Apr, 2022 1 commit
    • Jakub Ružička's avatar
      project: refactor project paths · 7eb47373
      Jakub Ružička authored
      Contain project paths management in a dedicated ProjectPaths class in
      order to:
      
      * simplify Project class code
      * access paths with nice project.path.input syntax
      * allow for future extensions such as configurable paths
      
      Closes: #69
      7eb47373
  7. 23 Mar, 2022 3 commits
  8. 15 Mar, 2022 1 commit
  9. 10 Feb, 2022 2 commits
  10. 28 Jan, 2022 2 commits
  11. 25 Jan, 2022 4 commits
  12. 18 Jan, 2022 6 commits
  13. 12 Jan, 2022 1 commit
  14. 11 Jan, 2022 2 commits
  15. 10 Jan, 2022 2 commits