diff --git a/README.md b/README.md index 3c3d057..a4eca2a 100644 --- a/README.md +++ b/README.md @@ -954,6 +954,14 @@ nmcli connection modify ens2f0 connection.autoconnect yes nmcli connection delete bond1 ``` +## Release + +1. Run `git tag -s vX.Y.Z -m vX.Y.Z`. +2. Run `git push origin vX.Y.Z` and wait for the Release to be created. +3. Edit the created Release. +4. Press the `Generate release notes` button and edit the release notes. +5. Press the `Update release` button. + ## License MIT diff --git a/nmcli-cli-autoconnect-list b/nmcli-cli-autoconnect-list index 23371df..54857fb 100755 --- a/nmcli-cli-autoconnect-list +++ b/nmcli-cli-autoconnect-list @@ -7,17 +7,23 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" + usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 all - $0 yes|no or on|off + ${COMMAND_NAME} all + ${COMMAND_NAME} yes|no or on|off Examples: - $0 all - $0 yes - + ${COMMAND_NAME} all + ${COMMAND_NAME} yes _EOF_ } diff --git a/nmcli-cli-autoconnect-set b/nmcli-cli-autoconnect-set index 04b7998..77275fc 100755 --- a/nmcli-cli-autoconnect-set +++ b/nmcli-cli-autoconnect-set @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,19 +36,23 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] IF_NAME yes|no or on|off + ${COMMAND_NAME} [-n] [-x] IF_NAME yes|no or on|off Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 eno1 off - $0 bond1 on - + ${COMMAND_NAME} eno1 off + ${COMMAND_NAME} bond1 on _EOF_ } diff --git a/nmcli-cli-bond-add b/nmcli-cli-bond-add index 095b4f3..1bc1a6f 100755 --- a/nmcli-cli-bond-add +++ b/nmcli-cli-bond-add @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,19 +36,23 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] NEW_BOND_IF_NAME BOND_OPTIONS IF_SLAVE1 IF_SLAVE2 [IF_SLAVE3...] + ${COMMAND_NAME} [-n] [-x] NEW_BOND_IF_NAME BOND_OPTIONS IF_SLAVE1 IF_SLAVE2 [IF_SLAVE3...] Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 bond1 mode=active-backup eno1 ens2f0 - $0 bond1 mode=802.3ad,miimon=100,updelay=500,xmit_hash_policy=layer2+3 eno1 eno3 ens2f0 - + ${COMMAND_NAME} bond1 mode=active-backup eno1 ens2f0 + ${COMMAND_NAME} bond1 mode=802.3ad,miimon=100,updelay=500,xmit_hash_policy=layer2+3 eno1 eno3 ens2f0 _EOF_ } diff --git a/nmcli-cli-bond-delete b/nmcli-cli-bond-delete index f116de3..fd7cd1b 100755 --- a/nmcli-cli-bond-delete +++ b/nmcli-cli-bond-delete @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,18 +36,22 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] BOND_IF_NAME + ${COMMAND_NAME} [-n] [-x] BOND_IF_NAME Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 bond1 - + ${COMMAND_NAME} bond1 _EOF_ } diff --git a/nmcli-cli-bridge-add b/nmcli-cli-bridge-add index f1d232b..107bd5c 100755 --- a/nmcli-cli-bridge-add +++ b/nmcli-cli-bridge-add @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,19 +36,23 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] NEW_BRIDGE_IF_NAME IF_SLAVE + ${COMMAND_NAME} [-n] [-x] NEW_BRIDGE_IF_NAME IF_SLAVE Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 br1 eno1 - $0 br1 bond1 - + ${COMMAND_NAME} br1 eno1 + ${COMMAND_NAME} br1 bond1 _EOF_ } diff --git a/nmcli-cli-bridge-delete b/nmcli-cli-bridge-delete index 15a92f5..b664118 100755 --- a/nmcli-cli-bridge-delete +++ b/nmcli-cli-bridge-delete @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,18 +36,22 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] BRIDGE_NAME + ${COMMAND_NAME} [-n] [-x] BRIDGE_NAME Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 br1 - + ${COMMAND_NAME} br1 _EOF_ } diff --git a/nmcli-cli-device-name b/nmcli-cli-device-name index 3dc4270..c2529e4 100755 --- a/nmcli-cli-device-name +++ b/nmcli-cli-device-name @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,19 +36,23 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] DEVICE [NEW_IF_NAME] + ${COMMAND_NAME} [-n] [-x] DEVICE [NEW_IF_NAME] Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 eno1 - $0 eno1 "New Name 1" - + ${COMMAND_NAME} eno1 + ${COMMAND_NAME} eno1 "New Name 1" _EOF_ } diff --git a/nmcli-cli-ipv4 b/nmcli-cli-ipv4 index 4c89614..e291125 100755 --- a/nmcli-cli-ipv4 +++ b/nmcli-cli-ipv4 @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,11 +36,16 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] NAME dhcp|disable - $0 [-n] [-x] NAME static IP_SUBNET [GATEWAY] [DNS] + ${COMMAND_NAME} [-n] [-x] NAME dhcp|disable + ${COMMAND_NAME} [-n] [-x] NAME static IP_SUBNET [GATEWAY] [DNS] Options: -n No interface check (Default: check interface) @@ -51,12 +57,11 @@ Usage: The first IP_SUBNET is the primary IP address. Examples: - $0 eno1 dhcp - $0 eno1 static 192.168.1.101/24 192.168.1.1 192.168.1.1,10.0.0.2 - $0 eno1 static 192.168.1.101/24 - $0 eno1 static 192.168.1.101/24,10.0.0.201/23 - $0 eno1 disable - + ${COMMAND_NAME} eno1 dhcp + ${COMMAND_NAME} eno1 static 192.168.1.101/24 192.168.1.1 192.168.1.1,10.0.0.2 + ${COMMAND_NAME} eno1 static 192.168.1.101/24 + ${COMMAND_NAME} eno1 static 192.168.1.101/24,10.0.0.201/23 + ${COMMAND_NAME} eno1 disable _EOF_ } diff --git a/nmcli-cli-ipv4-copy b/nmcli-cli-ipv4-copy index bf460b5..685537b 100755 --- a/nmcli-cli-ipv4-copy +++ b/nmcli-cli-ipv4-copy @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -43,21 +44,25 @@ nmcli_value() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] SRC_IF_NAME DEST_IF_NAME + ${COMMAND_NAME} [-n] [-x] SRC_IF_NAME DEST_IF_NAME Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 eno1 bond1 - $0 bond1 br1 - $0 eno1 bond1 (copy primary and secondary addresses) - $0 eno1 (show current configuration) - + ${COMMAND_NAME} eno1 bond1 + ${COMMAND_NAME} bond1 br1 + ${COMMAND_NAME} eno1 bond1 (copy primary and secondary addresses) + ${COMMAND_NAME} eno1 (show current configuration) _EOF_ } diff --git a/nmcli-cli-ipv6 b/nmcli-cli-ipv6 index 70cbf7f..f0208bb 100755 --- a/nmcli-cli-ipv6 +++ b/nmcli-cli-ipv6 @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,11 +36,16 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] NAME auto|dhcp|link-local|disable|ignore - $0 [-n] [-x] NAME static|manual IP_SUBNET [GATEWAY] [DNS] + ${COMMAND_NAME} [-n] [-x] NAME auto|dhcp|link-local|disable|ignore + ${COMMAND_NAME} [-n] [-x] NAME static|manual IP_SUBNET [GATEWAY] [DNS] Options: -n No interface check (Default: check interface) @@ -51,14 +57,13 @@ Usage: The first IP_SUBNET is the primary IP address. Examples: - $0 eno1 auto - $0 eno1 dhcp - $0 eno1 static 2001:db8:1::101/48 2001:db8:1::1 2001:db8:1::1,2001:db8:1::2 - $0 eno1 static 2001:db8:1::101/48 - $0 eno1 static 2001:db8:1::101/48,2001:db8:2::201/64 - $0 eno1 link-local - $0 eno1 disable - + ${COMMAND_NAME} eno1 auto + ${COMMAND_NAME} eno1 dhcp + ${COMMAND_NAME} eno1 static 2001:db8:1::101/48 2001:db8:1::1 2001:db8:1::1,2001:db8:1::2 + ${COMMAND_NAME} eno1 static 2001:db8:1::101/48 + ${COMMAND_NAME} eno1 static 2001:db8:1::101/48,2001:db8:2::201/64 + ${COMMAND_NAME} eno1 link-local + ${COMMAND_NAME} eno1 disable _EOF_ } diff --git a/nmcli-cli-ipv6-copy b/nmcli-cli-ipv6-copy index d2a235b..1a37d0d 100755 --- a/nmcli-cli-ipv6-copy +++ b/nmcli-cli-ipv6-copy @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -43,21 +44,25 @@ nmcli_value() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] SRC_IF_NAME DEST_IF_NAME + ${COMMAND_NAME} [-n] [-x] SRC_IF_NAME DEST_IF_NAME Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 eno1 bond1 - $0 bond1 br1 - $0 eno1 bond1 (copy primary and secondary addresses) - $0 eno1 (show current configuration) - + ${COMMAND_NAME} eno1 bond1 + ${COMMAND_NAME} bond1 br1 + ${COMMAND_NAME} eno1 bond1 (copy primary and secondary addresses) + ${COMMAND_NAME} eno1 (show current configuration) _EOF_ } diff --git a/nmcli-cli-restart b/nmcli-cli-restart index a22dbc3..aa9d343 100755 --- a/nmcli-cli-restart +++ b/nmcli-cli-restart @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,18 +36,22 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] IF_NAME + ${COMMAND_NAME} [-n] [-x] IF_NAME Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 eno1 - + ${COMMAND_NAME} eno1 _EOF_ } diff --git a/nmcli-cli-slave-list b/nmcli-cli-slave-list index 94f19df..d61feed 100755 --- a/nmcli-cli-slave-list +++ b/nmcli-cli-slave-list @@ -7,16 +7,23 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" + usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 IF_NAME - Examples: - $0 bond1 - $0 vlan.100 - $0 br1 + ${COMMAND_NAME} IF_NAME + Examples: + ${COMMAND_NAME} bond1 + ${COMMAND_NAME} vlan.100 + ${COMMAND_NAME} br1 _EOF_ } diff --git a/nmcli-cli-vlan-add b/nmcli-cli-vlan-add index ae7e18c..6f5375b 100755 --- a/nmcli-cli-vlan-add +++ b/nmcli-cli-vlan-add @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,19 +36,23 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] VLAN_IF_NAME VLAN_ID IF_NAME + ${COMMAND_NAME} [-n] [-x] VLAN_IF_NAME VLAN_ID IF_NAME Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 eno1.100 100 eno1 - $0 vlan.100 100 bond1 - + ${COMMAND_NAME} eno1.100 100 eno1 + ${COMMAND_NAME} vlan.100 100 bond1 _EOF_ } diff --git a/nmcli-cli-vlan-delete b/nmcli-cli-vlan-delete index f2fa3dd..47f81bf 100755 --- a/nmcli-cli-vlan-delete +++ b/nmcli-cli-vlan-delete @@ -7,6 +7,7 @@ # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php +VERSION="1.2.0" ECHO_OR_EXECUTE="echo" print_command() { @@ -35,20 +36,24 @@ echo_or_execute() { } usage() { + local COMMAND_NAME + COMMAND_NAME="$(basename "${0}")" + cat << _EOF_ +${COMMAND_NAME} ${VERSION} + Usage: - $0 [-n] [-x] VLAN_IF_NAME + ${COMMAND_NAME} [-n] [-x] VLAN_IF_NAME Options: -n No interface check (Default: check interface) -x Run command (Default: echo only) Examples: - $0 eno1.100 - $0 bond1.100 - $0 vlan.100 - + ${COMMAND_NAME} eno1.100 + ${COMMAND_NAME} bond1.100 + ${COMMAND_NAME} vlan.100 _EOF_ }