From 0501f56c7e3e8f08674242d265ebd4bdbb4b36f4 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 6 Nov 2024 21:16:37 +0100 Subject: [PATCH] chore(gitlab): start snippets --- snippets/gitlab/other commands.fish | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 snippets/gitlab/other commands.fish diff --git a/snippets/gitlab/other commands.fish b/snippets/gitlab/other commands.fish new file mode 100644 index 0000000..b49e039 --- /dev/null +++ b/snippets/gitlab/other commands.fish @@ -0,0 +1,9 @@ +#!/usr/bin/env fish + +# List the current application settings of the GitLab instance. +curl -sH 'PRIVATE-TOKEN: glpat-m-…' 'https://gitlab.fqdn/api/v4/application/settings' | jq + +# Show the diff in settings between two instances +jd -color \ + ( curl -ksH 'PRIVATE-TOKEN: glpat-abcdefghijklmnopqrst' 'https://gitlab.test.fqdn/api/v4/application/settings' | jq | psub ) \ + ( curl -ksH 'PRIVATE-TOKEN: glpat-0123456789abcdefghij' 'https://gitlab.prod.fqdn/api/v4/application/settings' | jq | psub)