From 7d9a7204b2f52279927168191922c2229172cd11 Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 24 Jul 2020 10:26:11 +0000 Subject: tools: add docstrings FossilOrigin-Name: 5d093c4c773fc21090e45f8b8da057e591cb139a415525522deee9a8f65a0afc --- tools/cpt-alternatives | 1 + tools/cpt-build | 1 + tools/cpt-checksum | 1 + tools/cpt-download | 1 + tools/cpt-fetch | 1 + tools/cpt-install | 1 + tools/cpt-list | 1 + tools/cpt-remove | 1 + tools/cpt-search | 3 +++ tools/cpt-update | 1 + 10 files changed, 12 insertions(+) (limited to 'tools') diff --git a/tools/cpt-alternatives b/tools/cpt-alternatives index 5b0007e..a65c2fc 100755 --- a/tools/cpt-alternatives +++ b/tools/cpt-alternatives @@ -1,4 +1,5 @@ #!/bin/sh -ef +# List and swap to alternatives # shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi diff --git a/tools/cpt-build b/tools/cpt-build index 40ae4fd..ac4427b 100755 --- a/tools/cpt-build +++ b/tools/cpt-build @@ -1,4 +1,5 @@ #!/bin/sh +# Build a package # shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi diff --git a/tools/cpt-checksum b/tools/cpt-checksum index c9651bf..cb01d89 100755 --- a/tools/cpt-checksum +++ b/tools/cpt-checksum @@ -1,4 +1,5 @@ #!/bin/sh -ef +# Generate checksums # shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi diff --git a/tools/cpt-download b/tools/cpt-download index 77087b9..cd73ba1 100755 --- a/tools/cpt-download +++ b/tools/cpt-download @@ -1,4 +1,5 @@ #!/bin/sh -ef +# Download sources for the given package # shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi diff --git a/tools/cpt-fetch b/tools/cpt-fetch index e244b13..b0dbc1d 100755 --- a/tools/cpt-fetch +++ b/tools/cpt-fetch @@ -1,4 +1,5 @@ #!/bin/sh -ef +# Fetch repositories # shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi diff --git a/tools/cpt-install b/tools/cpt-install index 9c7a3c5..77c1de0 100755 --- a/tools/cpt-install +++ b/tools/cpt-install @@ -1,4 +1,5 @@ #!/bin/sh +# Install a package # shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi diff --git a/tools/cpt-list b/tools/cpt-list index d248efc..ca87ef6 100755 --- a/tools/cpt-list +++ b/tools/cpt-list @@ -1,4 +1,5 @@ #!/bin/sh -ef +# List installed packages # shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi diff --git a/tools/cpt-remove b/tools/cpt-remove index 0263e4e..803fd36 100755 --- a/tools/cpt-remove +++ b/tools/cpt-remove @@ -1,4 +1,5 @@ #!/bin/sh -ef +# Remove a package # shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi diff --git a/tools/cpt-search b/tools/cpt-search index 1e48f97..17f45a9 100755 --- a/tools/cpt-search +++ b/tools/cpt-search @@ -1,4 +1,7 @@ #!/bin/sh -ef +# Search for a package + +# shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi # By default we are showing all instances of a package. This value can be unset diff --git a/tools/cpt-update b/tools/cpt-update index 77be11d..b925e1a 100755 --- a/tools/cpt-update +++ b/tools/cpt-update @@ -1,4 +1,5 @@ #!/bin/sh -ef +# Check for updates # shellcheck disable=1091 if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi -- cgit v1.2.3