mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2025-04-21 17:22:02 +03:00
Update Nix shell and add envrc
This commit is contained in:
parent
cf6776dfd1
commit
b1f8684b21
10 changed files with 94352 additions and 53 deletions
38
src/index.ts
38
src/index.ts
|
@ -1,3 +1,39 @@
|
|||
function main(): void {}
|
||||
import { ActionOptions, IdsToolbox, inputs } from "detsys-ts";
|
||||
|
||||
class UpdateFlakeLockAction {
|
||||
idslib: IdsToolbox;
|
||||
private nixOptions: string;
|
||||
private targets: string;
|
||||
private commitMessage: string;
|
||||
private pathToFlakeDir: string;
|
||||
|
||||
constructor() {
|
||||
const options: ActionOptions = {
|
||||
name: "update-flake-lock",
|
||||
// We don't
|
||||
fetchStyle: "universal",
|
||||
requireNix: "fail",
|
||||
};
|
||||
|
||||
this.idslib = new IdsToolbox(options);
|
||||
|
||||
this.nixOptions = inputs.getString("nix-options");
|
||||
this.targets = inputs.getString("inputs");
|
||||
this.commitMessage = inputs.getString("commit-msg");
|
||||
this.pathToFlakeDir = inputs.getString("path-to-flake-dir");
|
||||
}
|
||||
|
||||
async update(): Promise<void> {}
|
||||
}
|
||||
|
||||
function main(): void {
|
||||
const updateFlakeLock = new UpdateFlakeLockAction();
|
||||
|
||||
updateFlakeLock.idslib.onMain(async () => {
|
||||
await updateFlakeLock.update();
|
||||
});
|
||||
|
||||
updateFlakeLock.idslib.execute();
|
||||
}
|
||||
|
||||
main();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue