###
# oo
#
# 88d8b.d8b. .d8888b. 88d888b. .d8888b. .d8888b. .d8888b. dP 88d888b. .d8888b.
# 88'`88'`88 88' `88 88' `88 88' `88 88' `88 88ooood8 88888888 88 88' `88 88' `""
# 88 88 88 88. .88 88 88 88. .88 88. .88 88. ... 88 88 88 88. ...
# dP dP dP `88888P8 dP dP `88888P8 `8888P88 `88888P' dP dP dP `88888P'
# .88
# d8888P
# https://textkool.com/en/ascii-art-generator?hl=default&vl=default&font=Nancyj-Fancy&text=manage-inc
#
# @Author lanthean@protonmail.com
# @Created 27/01/2022
#
# @Package manage-inc
###
CLI tool to help manage support incidents, development and Handover to Support H2S tasks (investigation notes, details, etc.).
With HEAT API integration (so far support incidents are integrated - aid while creating new local support case).
Keep track (locally) of all the investigation effort put into solving support, dev and h2s cases
inc --helpIn case Clickup is used in tandem with manage-inc there is a python script capable of syncing task's statuses.
loopcmd python3 ~/bin/manage-inc/clickup-api-poll.pyloopcmd is not in the scope of this solution, it is configured in my tmux to be able to restore running processes after reboot
- Clone repository to ~/bin/manage-inc:
(( -d ~/bin/manage-inc )) || mkdir -p ~/bin/manage-inc
pushd ~/bin && git clone https://github.com/lanthean/manage-inc.git
popd- Compile and create link using Makefile
pushd ~/bin/manage-inc
make- Create link to ~/bin (which should be in $PATH):
(( -f ~/bin/inc )) || ln -s ~/bin/manage-inc/inc ~/bin/- Compile inc.sh (install dependencies first)
# MAC: brew install shc
# Ubunut: apt install shc
# RHEL/Centos: yum install shc
shc -f inc.sh -o inc(( -f /etc/bash_completion.d/inc )) || ln -sf ${PWD}/bash_completion.d/inc /etc/bash_completion.d/
(( -f /etc/bash_completion.d/ops )) || ln -sf ${PWD}/bash_completion.d/ops /etc/bash_completion.d/
# macos
(( -f /opt/homebrew/etc/bash_completion.d/inc )) || ln -sf ${PWD}/bash_completion.d/inc /opt/homebrew/etc/bash_completion.d/
(( -f /opt/homebrew/etc/bash_completion.d/ops )) || ln -sf ${PWD}/bash_completion.d/ops /opt/homebrew/etc/bash_completion.d/~/.zshrc
completion_plugins=(
inc
ops
)
if [[ -d /opt/homebrew/etc/bash_completion.d/ ]];then
for f in ${completion_plugins[@]};do
[[ -r /opt/homebrew/etc/bash_completion.d/$f ]] && source /opt/homebrew/etc/bash_completion.d/$f
done
fi