Skip to content

Commit

Permalink
feat(pog): climod -> pog
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Nov 21, 2024
1 parent 4f1c950 commit cd2947b
Show file tree
Hide file tree
Showing 9 changed files with 423 additions and 330 deletions.
2 changes: 1 addition & 1 deletion examples
5 changes: 5 additions & 0 deletions local/cells/dev/pops.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ let
inputs' = (inputs.omnibus.pops.flake.setSystem nixpkgs.system).inputs;
in
{
scripts = {
inputs.inputs = {
inherit (inputs') pogSrc;
};
};
omnibus = {
devshellProfiles = inputs.omnibus.pops.devshellProfiles.addLoadExtender {
load.inputs.inputs = inputs';
Expand Down
21 changes: 21 additions & 0 deletions local/cells/dev/scripts/pog.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pog.pog {
# Required
name = "tool-name"; # Name of your CLI tool
script = ''
echo "hello, world!"
''; # Bash script or function that uses helpers

# Optional
version = "0.0.0"; # Version of your tool
description = "..."; # Tool description
flags = [ ]; # List of flag definitions
arguments = [ ]; # Positional arguments
argumentCompletion = "files"; # Completion for positional args
runtimeInputs = [ ]; # Runtime dependencies
bashBible = false; # Include bash-bible helpers
beforeExit = ""; # Code to run before exit
strict = false; # Enable strict bash mode
flagPadding = 20; # Padding for help text
showDefaultFlags = false; # Show built-in flags in usage
shortDefaultFlags = true; # Enable short versions of default flags}
}
14 changes: 12 additions & 2 deletions local/cells/dev/shells.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ in

imports = [
cell.pops.omnibus.devshellProfiles.exports.default.nickel
std.std.devshellProfiles.default
];

# Tool Homepage: https://nix-community.github.io/nixago/
Expand All @@ -32,6 +31,8 @@ in
cell.configs.treefmt.default
];

devshell.startup.pog.text = '''';

packages = [
nixpkgs.d2
nixpkgs.statix
Expand All @@ -42,9 +43,18 @@ in

nixpkgs.reuse
nixpkgs.nixci
cell.scripts.pog
];

commands = [ ];
commands = [
{
name = "std";
help = std.packages.std.meta.description;
command = ''
(cd $PRJ_ROOT/local && ${std.packages.std}/bin/std "$@")
'';
}
];
};

std = lib.dev.mkShell {
Expand Down
Loading

0 comments on commit cd2947b

Please sign in to comment.