Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.
/ autoblih Public archive

Simple blih command line automation tool for EPITECH

Notifications You must be signed in to change notification settings

Thesola10/autoblih

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

AutoBlih - Finally a better CLI for Blih!

AutoBlih is a bash script to automatically create and clone blih Git repositories.

Usage

CLI mode

To use AutoBlih as a regular command line tool, you can use the following syntax:

autoblih my.user@epitech.eu repo_name target_dir otheruser@epitech.eu:rw,user:r

The example above will create a repository called repo_name on my.user@epitech.eu's account, set ACL to otheruser@epitech.eu as read-write and to user as read-only, and clone the resulting repository in target_dir/repo_name.

Batch mode

AutoBlih really shines when used in batch mode. Simply place a file called Blihfile in the current directory with these contents for example:

my_repo_1     my_directory    lol@epitech.eu:r
my_repo_2     .               user:rw,lol:r

...then run autoblih my.user@epitech.eu without further arguments.

The syntax is the same as in CLI mode, which means the example above will do the following on my.user@epitech.eu's account:

  • Create my_repo_1 with read access to lol@epitech.eu then clone it in my_directory/my_repo_1
  • Create my_repo_2 with read-write access to user and read access to lol then clone it in my_repo_2

There is no limit to the number of lines, or the number of ACL for each line.

Environment variables

AutoBlih's behavior can be configured using environment variables. The following variables are read:

  • BLIHFLAGS - Arguments to be added to calls to blih, such as your token.
  • GITFLAGS - Arguments to be added to git clone.

Requirements

  • git to clone the repository once created
  • A working SSH key on Blih
  • blih to do pretty much everything else

If you don't know what Blih or ACL are, then you most likely don't need this.

About

Simple blih command line automation tool for EPITECH

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages