This initializes a very simple AGit helper script. Usage: ``` agit create ``` or ``` agit c ``` To create a new AGit Pr. Integrate Pulling from an AGit remote. Gitea doesn't expose an AGit endpoint in the api, or the `tea` cli. This makes pulling not feasible, since there is no robust way to query the AGit topic, which is the ref that need to be pulled. One possible solution currently could be scraping the gitea instructions for forking a pull request on an AGit PR.
27 lines
331 B
Nix
27 lines
331 B
Nix
{
|
|
bash,
|
|
callPackage,
|
|
git,
|
|
lib,
|
|
openssh,
|
|
...
|
|
}:
|
|
let
|
|
writers = callPackage ../builders/script-writers.nix { };
|
|
in
|
|
writers.writePython3Bin "agit" {
|
|
flakeIgnore = [
|
|
"E501"
|
|
];
|
|
makeWrapperArgs = [
|
|
"--prefix"
|
|
"PATH"
|
|
":"
|
|
(lib.makeBinPath [
|
|
bash
|
|
git
|
|
openssh
|
|
])
|
|
];
|
|
} ./agit.py
|