Compare commits
No commits in common. "aea51fccd821b5cf5de8b6961d5053852b0a26a8452bd5ba9904369255847dce" and "94dab46a3808a152394363cdffea480ad05181a8608d4669af3bffedc5b58640" have entirely different histories.
aea51fccd8
...
94dab46a38
3 changed files with 0 additions and 53 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +0,0 @@
|
||||||
.direnv/
|
|
|
@ -1,31 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import json
|
|
||||||
import sys
|
|
||||||
|
|
||||||
def jx_ask():
|
|
||||||
return None
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
question1 = {
|
|
||||||
"command": "prompt",
|
|
||||||
"type": "string",
|
|
||||||
"prompt": "Enter your name: ",
|
|
||||||
}
|
|
||||||
print(json.dumps(question1))
|
|
||||||
answer = input()
|
|
||||||
print(answer, file=sys.stderr)
|
|
||||||
|
|
||||||
question2 = {
|
|
||||||
"command": "prompt",
|
|
||||||
"type": "string",
|
|
||||||
"prompt": "Please try again: ",
|
|
||||||
}
|
|
||||||
print(json.dumps(question2))
|
|
||||||
answer = input()
|
|
||||||
print(answer, file=sys.stderr)
|
|
||||||
|
|
||||||
success = {
|
|
||||||
"command": "success",
|
|
||||||
}
|
|
||||||
print(json.dumps(success))
|
|
21
flake.nix
21
flake.nix
|
@ -1,21 +0,0 @@
|
||||||
{
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
||||||
};
|
|
||||||
outputs = { self, nixpkgs }:
|
|
||||||
let
|
|
||||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
|
|
||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
devShells = forAllSystems (system: {
|
|
||||||
default = nixpkgs.legacyPackages.${system}.mkShellNoCC {
|
|
||||||
packages = with nixpkgs.legacyPackages.${system}; [
|
|
||||||
ruff
|
|
||||||
poetry
|
|
||||||
python
|
|
||||||
];
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue