#git #git-repository #tool #command-line-tool #cli

app cign

Watch configured git repos, check if all are clean with one command

2 unstable releases

0.2.0 Dec 13, 2022
0.1.0 Jun 20, 2020

#1781 in Filesystem

MIT license

25KB
447 lines

Can I go now?

You likely ask this question every time before shutting off your computer for the day, especially when working with git-managed projects. cign is a simple program that helps you answer with confidence. You add git repo directories for cign to watch and then check if each HEAD is clean and pushed with a single command. With the cign refresh subcommand you can fetch all known repos, while cign fix runs your $SHELL and guides you through cleaning up each repo; $SHELL can be replaced with anything you'd like to run in all dirs.

Installation

crates.io

$ cargo install cign

Nix

$ nix-env -i -f default.nix

Usage

To start off, run cign init to create a new cign config in ~/.cign.toml. Then you can go to each repo and run cign add to start watching. See cign help for more options.

Yes.

Yes.

# Yes.
enable_chad = "Yes."
$ cign
                                   ,(%%%%%%%%@#..
                          @@#,,,.,,/*########&&.@/.,.&%,(@
                  /@,/,.,(@(,,,.,,,/,(((##((#&@@,.,,@,...,@,(*
             &%,,..,@,,,,.@,,,,,%@**,########&@,,.,@,,,,.@&.&,.*
           @.,#@%,,,,,,(/,...((,,,,*,#%%%%%%%&@.(@,,,.@,,,,.,,@,@
          @/&@%.,,,&#,,,,,,@*,,.,.@**%%%%%%%%&@..,,.,%#.,,#%,,@.@@
          @ &*@...@.,,.@#,..,..&/,@*/&&&&&&&&@@@@@@@.,#@,.. #@ &@@.
         @.....,@@.,/  ..,(&@,,,,..*(&&&&&&&&@@.,,,,,,.,,..,..,.,,,@
        @...........%*&.....@,,...,*#&@@@@@@&@@........,.....,.,.,..@
      ,@.%@@@**@@@@@% (.....%..,,.,*%@@@@@@@@@@,,.,,..,.....,....,..,@.
     %..................@....@..,..*%@@@@@@@@@@..,..,,,,.,,........,,.@
     @.@*./@@,.,#@*......&....@....*%@@@@@@@@@@..,,..,,....,..,,,,....@
     @@.@@&@, .  .,*@@ .......(/###*%@@@@@@@@@@@@@@(..,.....,,,,,.....@
      @..@..%&@/#   @@@%....*###,,..(%%%&&&@@@@@@@@@@@(........,......@
     &. #...&@@@/ .........(#,,....,,,*/#%%&&@@@@@@@@@@@,..,..........@
   .,....................*#*,...@@&&&&@@@@@@@@@@@@@@@@@@@..,.,.,....%#
  . .....................#*,,@%%@@@@@@@@@@@@@@@@@@@@@@@@@#.....,...@
 , .....,&(.............#/*@##@@@@@@@@@@@@@@@@@@@@@@@@@@@,,......**
% ......................#*%#%@@@@@@@@@@@@@@@@@@@@@@@@@@@@*. ... @
@,.   ../&&...&.........#*##@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......(
        .................##%@@@@@@@@@@@@@@@@@@@@@@@@@@@.......@
      &@@@,.............../%&@@/,@@@@@@@@@@@@@@@@@@@@#....... *
//&@  .@,(@%@#......../*/@@@/@&@@@@@@@@@@@@%%@@@@@@...........,
%&@/@#//(/&@,**/(&@#.... .........&@@@@@@@@@@%................,
         @..#...................(@......#@....................@
       (....................%@..........(@.....................@
       @.............. /@  .............,#............. .@@@@@&&&@@&&&*
         @# .. .#@@     @................,..........@@&&&&&&&&&&&&&&&&&.#@@
                         ......................@@&&&&&&&&&&@@@&&&&@@@&@&&&&&&@
                         .................(@&&&&&&&&&@@&&@&&&&&&&&&&&&&&@&&@@@
                       @@.........../@@&&&&&&&&@@@@&&&&&&&&&@&@@@@@&&&@&&&&&&&
                    @@&&/#@@&@&&@&&&&&&@@@@&&&@&&&&&&@@@&&&&&&&&&&&&&&@@&&@@@#
                   @&&&&&&&&&&&&&&&&&&&&&@&&@@@&&&&&&&&&&&&&&@&@@@
                 @@&&&&&&&&&&&&&&&&&&&&@@@&&&&&&&&&&&&@&@@#
                ,&@&&&&&&&&&&&&&&&&&&&@&&&&&&&&&@@@
                @&&&&&&&&&&&&&&&&&@&&&@@@@&.

                               __   __          
                               \ \ / /__  ___   
                                \ V / _ \/ __|  
                                 | |  __/\__ \_ 
                                 |_|\___||___(_)

Dependencies

~15–25MB
~403K SLoC