Compare commits
3 commits
94dab46a38
...
aea51fccd8
Author | SHA256 | Date | |
---|---|---|---|
aea51fccd8 | |||
41158fbea0 | |||
f7b0bb5e6e |
3 changed files with 53 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.direnv/
|
31
elisp/test-jx.py
Executable file
31
elisp/test-jx.py
Executable file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/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
Normal file
21
flake.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
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