cabal-bounds 0.1.9 → 0.1.10
raw patch · 3 files changed
+29/−39 lines, 3 files
Files
- README.md +10/−15
- cabal-bounds.cabal +11/−16
- src/CabalBounds/Args.hs +8/−8
README.md view
@@ -38,24 +38,24 @@ The `=>` shows what the result is of the operation for every dependency. Left is the dependency before calling the command, right the one after calling. - $> cabal drop myproject.cabal+ $> cabal-bounds drop myproject.cabal lens >=4.0.1 && <4.1 => lens - $> cabal drop --upper myproject.cabal+ $> cabal-bounds drop --upper myproject.cabal lens >=4.0.1 && <4.1 => lens >=4.0.1 If the cabal build (the setup-config) uses `lens 4.1.2`, then the results of the `update` command would be: - $> cabal update myproject.cabal setup-config+ $> cabal-bounds update myproject.cabal setup-config lens >=4.0.1 && <4.1 => lens >=4.1.2 && <4.2 lens => lens >=4.1.2 && <4.2 - $> cabal update --lower myproject.cabal setup-config+ $> cabal-bounds update --lower myproject.cabal setup-config lens >=4.0.1 && <4.1 => lens >=4.1.2 lens <4.1 => lens >=4.1.2 lens => lens >=4.1.2 - $> cabal update --upper myproject.cabal setup-config+ $> cabal-bounds update --upper myproject.cabal setup-config lens >=4.0.1 && <4.1 => lens >=4.0.1 && <4.2 lens >=4.0.1 => lens >=4.0.1 && <4.2 lens => lens >=4.1.2 && <4.2@@ -76,12 +76,15 @@ Command Line Usage ================== - $> cabal-bounds --help- cabal-bounds [COMMAND] ... [OPTIONS]+ $> cabal-bounds [COMMAND] ... [OPTIONS] A command line program for managing the bounds/versions of the dependencies in a cabal file. Common flags:+ -l --library Only the bounds of the library are modified.+ -e --executable=ITEM Only the bounds of the executable are modified.+ -t --testsuite=ITEM Only the bounds of the test suite are modified.+ -b --benchmark=ITEM Only the bounds of the benchmark are modified. -O --only=ITEM Only the bounds of the dependency are modified. -I --ignore=ITEM This dependency is ignored, not modified in any way.@@ -94,19 +97,11 @@ -U --upper Only the upper bound is dropped, otherwise both - the lower and upper - bounds are dropped.- -l --library Only the bounds of the library are dropped.- -e --executable=ITEM Only the bounds of the executable are dropped.- -t --testsuite=ITEM Only the bounds of the test suite are dropped.- -b --benchmark=ITEM Only the bounds of the benchmark are dropped. cabal-bounds update [OPTIONS] CABAL-FILE SETUP-CONFIG-FILE -L --lower Only the lower bound is updated. -U --upper Only the upper bound is updated.- -l --library Only the bounds of the library are updated.- -e --executable=ITEM Only the bounds of the executable are updated.- -t --testsuite=ITEM Only the bounds of the test suite are updated.- -b --benchmark=ITEM Only the bounds of the benchmark are updated. Issues ======
cabal-bounds.cabal view
@@ -1,5 +1,5 @@ name: cabal-bounds-version: 0.1.9+version: 0.1.10 cabal-version: >=1.9.2 build-type: Simple license: BSD3@@ -43,24 +43,24 @@ The '=>' shows what the result is of the operation for every dependency. Left is the dependency before calling the command, right the one after calling. .- > $> cabal drop myproject.cabal+ > $> cabal-bounds drop myproject.cabal > lens >=4.0.1 && <4.1 => lens > - > $> cabal drop --upper myproject.cabal+ > $> cabal-bounds drop --upper myproject.cabal > lens >=4.0.1 && <4.1 => lens >=4.0.1 . If the cabal build (the setup-config) uses 'lens 4.1.2', then the results of the 'update' command would be: .- > $> cabal update myproject.cabal setup-config+ > $> cabal-bounds update myproject.cabal setup-config > lens >=4.0.1 && <4.1 => lens >=4.1.2 && <4.2 > lens => lens >=4.1.2 && <4.2 >- > $> cabal update --lower myproject.cabal setup-config+ > $> cabal-bounds update --lower myproject.cabal setup-config > lens >=4.0.1 && <4.1 => lens >=4.1.2 > lens <4.1 => lens >=4.1.2 > lens => lens >=4.1.2 >- > $> cabal update --upper myproject.cabal setup-config+ > $> cabal-bounds update --upper myproject.cabal setup-config > lens >=4.0.1 && <4.1 => lens >=4.0.1 && <4.2 > lens >=4.0.1 => lens >=4.0.1 && <4.2 > lens => lens >=4.1.2 && <4.2@@ -79,12 +79,15 @@ . /Command Line Usage/ .- > $> cabal-bounds --help- > cabal-bounds [COMMAND] ... [OPTIONS]+ > $> cabal-bounds [COMMAND] ... [OPTIONS] > A command line program for managing the bounds/versions of the dependencies > in a cabal file. > > Common flags:+ > -l --library Only the bounds of the library are modified.+ > -e --executable=ITEM Only the bounds of the executable are modified.+ > -t --testsuite=ITEM Only the bounds of the test suite are modified.+ > -b --benchmark=ITEM Only the bounds of the benchmark are modified. > -O --only=ITEM Only the bounds of the dependency are modified. > -I --ignore=ITEM This dependency is ignored, not modified in any > way.@@ -97,19 +100,11 @@ > > -U --upper Only the upper bound is dropped, otherwise both > - the lower and upper - bounds are dropped.- > -l --library Only the bounds of the library are dropped.- > -e --executable=ITEM Only the bounds of the executable are dropped.- > -t --testsuite=ITEM Only the bounds of the test suite are dropped.- > -b --benchmark=ITEM Only the bounds of the benchmark are dropped. > > cabal-bounds update [OPTIONS] CABAL-FILE SETUP-CONFIG-FILE > > -L --lower Only the lower bound is updated. > -U --upper Only the upper bound is updated.- > -l --library Only the bounds of the library are updated.- > -e --executable=ITEM Only the bounds of the executable are updated.- > -t --testsuite=ITEM Only the bounds of the test suite are updated.- > -b --benchmark=ITEM Only the bounds of the benchmark are updated. . /Issues/ .
src/CabalBounds/Args.hs view
@@ -90,10 +90,10 @@ dropArgs :: Args dropArgs = Drop { upper = def &= explicit &= name "upper" &= name "U" &= help "Only the upper bound is dropped, otherwise both - the lower and upper - bounds are dropped."- , library = def &= explicit &= name "library" &= name "l" &= help "Only the bounds of the library are dropped."- , executable = def &= help "Only the bounds of the executable are dropped."- , testSuite = def &= help "Only the bounds of the test suite are dropped."- , benchmark = def &= help "Only the bounds of the benchmark are dropped."+ , library = def &= explicit &= name "library" &= name "l" &= help "Only the bounds of the library are modified."+ , executable = def &= help "Only the bounds of the executable are modified."+ , testSuite = def &= help "Only the bounds of the test suite are modified."+ , benchmark = def &= help "Only the bounds of the benchmark are modified." , only = def &= explicit &= name "only" &= name "O" &= help "Only the bounds of the dependency are modified." , ignore = def &= explicit &= name "ignore" &= name "I" &= help "This dependency is ignored, not modified in any way." , outputCabalFile = def &= explicit &= name "outputCabalFile" &= name "o" &= help "Save modified cabal file to file, if empty, the cabal file is modified inplace."@@ -105,10 +105,10 @@ updateArgs = Update { lower = def &= explicit &= name "lower" &= name "L" &= help "Only the lower bound is updated." , upper = def &= explicit &= name "upper" &= name "U" &= help "Only the upper bound is updated."- , library = def &= explicit &= name "library" &= name "l" &= help "Only the bounds of the library are updated."- , executable = def &= help "Only the bounds of the executable are updated."- , testSuite = def &= help "Only the bounds of the test suite are updated."- , benchmark = def &= help "Only the bounds of the benchmark are updated."+ , library = def &= explicit &= name "library" &= name "l" &= help "Only the bounds of the library are modified."+ , executable = def &= help "Only the bounds of the executable are modified."+ , testSuite = def &= help "Only the bounds of the test suite are modified."+ , benchmark = def &= help "Only the bounds of the benchmark are modified." , only = def &= explicit &= name "only" &= name "O" &= help "Only the bounds of the dependency are modified." , ignore = def &= explicit &= name "ignore" &= name "I" &= help "This dependency is ignored, not modified in any way." , outputCabalFile = def &= explicit &= name "outputCabalFile" &= name "o" &= help "Save modified cabal file to file, if empty, the cabal file is modified inplace."