Julien Fastré 7b6cc33ecb
Refactor Gitea client and improve issue handling
Update the authorization header format in the Gitea client. Enhance issue details in work package creation and make `number` field public in the `Issue` struct.
2024-11-14 14:22:39 +01:00
2024-03-17 21:36:10 +01:00
2024-01-09 09:41:46 +01:00
2024-01-08 23:19:56 +01:00
2024-01-08 13:26:09 +01:00
2024-01-08 23:22:29 +01:00
2024-01-09 09:50:10 +01:00

CL-cli utility

Provide a CLI interface for several recurring tasks for Champs-Libres

Currently:

  • convert a gitlab issue to a work package

Install & configure

Install

Download the most recent binaries at https://gitea.champs-libres.be/julienfastre/cl-cli/releases

Once downloaded, install it:

# this will install the command globally with the name "cl-cli"
sudo install cl-cli /usr/local/bin/cl-cli

# this will install the command globally with the name "cl"
sudo install cl-cli /usr/local/bin/cl

Configure

Copy the file config.toml.dist as a template, and save it at the path $HOME/.config/cl-cli/config.toml:

mkdir -p $HOME/.config/cl-cli
cp config.toml $HOME/.config/cl-cli/config.toml
editor $HOME/.config/cl-cli/config.toml

Then, fill it with the required configuration options (gitlab and openproject token).

Usage

Convert a gitlab issue into a work package

cl-cli planning i2work https://gitlab.com/Chill-Projet/chill-bundles/-/issues/240 chill

Where:

Description
No description provided
Readme 103 KiB
2024-11-17 20:25:32 +00:00
Languages
Rust 100%