cabal-version: 2.4
name: swiss-army-knife
version: 1.2.0.0
synopsis: A collection of small tools to make life a bit easier for the command-line.
category: System
description: Please see the README on GitHub at <https://github.com/flajann2/swiss-army-knife#readme>
homepage: https://github.com/flajann2/swiss-army-knife#readme
bug-reports: https://github.com/flajann2/swiss-army-knife/issues
author: Fred Mitchell
maintainer: fred.mitchell@atomlogik.de
copyright: 2024-2026 Fred Mitchell & Atomlogik
license: MIT
license-file: LICENSE
build-type: Simple
extra-source-files:
README.org
CHANGELOG.org
LICENSE
extra-doc-files:
README.org
CHANGELOG.org
CHANGELOG.md
tested-with: GHC == 9.14.1
source-repository head
type: git
location: https://github.com/flajann2/swiss-army-knife
common deps
build-depends:
aeson >= 2.1 && < 2.4
, base >= 4.18 && < 5
, bytestring >= 0.11 && < 0.13
, directory >= 1.3.8 && < 1.4
, filepath >= 1.4.2 && < 1.6
, http-conduit >= 2.3.8 && < 2.4
, optparse-applicative >= 0.18 && < 0.20
, process >= 1.6.18 && < 1.7
, resolv >= 0.1.2 && < 0.3
, split >= 0.2.5 && < 0.3
, yaml >= 0.11 && < 0.12
, text >= 2.0 && < 2.2
, extra >= 1.7 && < 1.9
default-language: GHC2021
ghc-options: -Wall
library
import: deps
exposed-modules:
CommandLine
Config
Utils
Knives
Knives.Version
Knives.Sleep
Knives.ExtIP
Knives.WireGuard
Knives.ZfsCheck
Knives.Kernel
Knives.SysNet
Knives.NetMan
Knives.Gitit
Knives.Gitit.Yaml
Knives.Gitit.Target
Knives.Gitit.Repo
autogen-modules:
Paths_swiss_army_knife
other-modules:
Paths_swiss_army_knife
hs-source-dirs:
lib
flag static
description: Build a statically-linked executable (requires ghc-static, libgmp-static, and a static zlib)
default: False
manual: True
executable sak
import: deps
main-is: SwissArmyKnife.hs
autogen-modules:
Paths_swiss_army_knife
other-modules:
Paths_swiss_army_knife
hs-source-dirs:
app
ghc-options: -threaded -rtsopts -with-rtsopts=-N
if flag(static)
ghc-options: -optl-static -threaded -rtsopts -with-rtsopts=-N
build-depends:
base >= 4.18 && < 5
, optparse-applicative >= 0.18 && < 0.20
, swiss-army-knife
default-language: GHC2021
if flag(static)
ld-options: -static
executable pg-config
import: deps
main-is: TConfig.hs
hs-source-dirs:
playground
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
base >= 4.18 && < 5
, optparse-applicative >= 0.18 && < 0.20
, swiss-army-knife
default-language: GHC2021
if flag(static)
ld-options: -static
test-suite swiss-army-knife-test
type: exitcode-stdio-1.0
main-is: Spec.hs
autogen-modules:
Paths_swiss_army_knife
other-modules:
Paths_swiss_army_knife
hs-source-dirs:
test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
base >= 4.18 && < 5
, swiss-army-knife
default-language: GHC2021