consul/command/intention
R.B. Boyer b60d89e7ef bulk rewrite using this script
set -euo pipefail

    unset CDPATH

    cd "$(dirname "$0")"

    for f in $(git grep '\brequire := require\.New(' | cut -d':' -f1 | sort -u); do
        echo "=== require: $f ==="
        sed -i '/require := require.New(t)/d' $f
        # require.XXX(blah) but not require.XXX(tblah) or require.XXX(rblah)
        sed -i 's/\brequire\.\([a-zA-Z0-9_]*\)(\([^tr]\)/require.\1(t,\2/g' $f
        # require.XXX(tblah) but not require.XXX(t, blah)
        sed -i 's/\brequire\.\([a-zA-Z0-9_]*\)(\(t[^,]\)/require.\1(t,\2/g' $f
        # require.XXX(rblah) but not require.XXX(r, blah)
        sed -i 's/\brequire\.\([a-zA-Z0-9_]*\)(\(r[^,]\)/require.\1(t,\2/g' $f
        gofmt -s -w $f
    done

    for f in $(git grep '\bassert := assert\.New(' | cut -d':' -f1 | sort -u); do
        echo "=== assert: $f ==="
        sed -i '/assert := assert.New(t)/d' $f
        # assert.XXX(blah) but not assert.XXX(tblah) or assert.XXX(rblah)
        sed -i 's/\bassert\.\([a-zA-Z0-9_]*\)(\([^tr]\)/assert.\1(t,\2/g' $f
        # assert.XXX(tblah) but not assert.XXX(t, blah)
        sed -i 's/\bassert\.\([a-zA-Z0-9_]*\)(\(t[^,]\)/assert.\1(t,\2/g' $f
        # assert.XXX(rblah) but not assert.XXX(r, blah)
        sed -i 's/\bassert\.\([a-zA-Z0-9_]*\)(\(r[^,]\)/assert.\1(t,\2/g' $f
        gofmt -s -w $f
    done
2022-01-20 10:46:23 -06:00
..
check bulk rewrite using this script 2022-01-20 10:46:23 -06:00
create bulk rewrite using this script 2022-01-20 10:46:23 -06:00
delete add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
get bulk rewrite using this script 2022-01-20 10:46:23 -06:00
list add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
match bulk rewrite using this script 2022-01-20 10:46:23 -06:00
format.go connect: various changes to make namespaces for intentions work more like for other subsystems (#8194) 2020-06-26 16:59:15 -05:00
helpers.go Support partitions in connect expose cmd 2021-11-12 14:45:32 -07:00
helpers_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
intention.go cli: Add consul intention list command (based on PR #6825) (#9468) 2021-01-12 21:14:31 +01:00
intention_test.go command/intention/create 2018-06-14 09:42:18 -07:00