1. 23 Nov, 2020 4 commits
    • Dridi Boukelmoune's avatar
      cli: New vcl.deps [-j] command · f7aeba94
      Dridi Boukelmoune authored
      The plain text output is a suitable input for tsort(1), initially
      meant to find the correct discard order, I realized that it would
      be more reliable to let vcl.discard figure that one out.
      
      It wouldn't really work in my initial scenario:
      
          varnishadm vcl.deps |
          <filter some VCLs out> |
          tsort |
          xargs -n 1 varnishadm vcl.discard
      
      The filtering part only worked for direct dependencies but we can
      have two levels with return(vcl).
      
      I'm keeping this command only for setup analysis, the output can
      easily be turned into a graphviz dot file for example.
      f7aeba94
    • Dridi Boukelmoune's avatar
      cli: Teach vcl.discard to operate on multiple VCLs · 9947307d
      Dridi Boukelmoune authored
      To put it simply, let's take a simple CLI script:
      
          vcl.discard vcl1
          vcl.discard vcl2
          [...]
          vcl.discard vclX
      
      We can now achieve the same with a single command:
      
          vcl.discard vcl1 vcl2 ... vclX
      
      But there is slighty more to it, because vcl.discard operates on both
      VCLs and VCL labels, and dependencies can exist between both. So in
      addition to operate on multiple VCLs it also does so in the correct
      order.
      9947307d
    • Dridi Boukelmoune's avatar
      cli: Always mention VCL names in vcl.discard errors · 66db3c5e
      Dridi Boukelmoune authored
      This is going to be useful once vcl.discard can take multiple VCL names
      at once.
      66db3c5e
    • Dridi Boukelmoune's avatar
      cli: Split vcl.discard in two · 1c7294c9
      Dridi Boukelmoune authored
      The first operation consists in checking the ability to discard the
      requested VCL, the second part effectively performs the VCL deletion.
      1c7294c9
  2. 20 Nov, 2020 3 commits
  3. 18 Nov, 2020 13 commits
  4. 16 Nov, 2020 2 commits
  5. 13 Nov, 2020 5 commits
  6. 12 Nov, 2020 6 commits
  7. 10 Nov, 2020 1 commit
  8. 09 Nov, 2020 6 commits