Compare commits

3 Commits

Author SHA1 Message Date
77e8621cf1 🔖 v0.2.3
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2023-11-04 13:01:15 -04:00
a4cfce2117 🚸 alias ls for list 2023-11-04 12:55:25 -04:00
3ad1dcfa4f 🔨 add nix overlay
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-27 14:52:21 -04:00
4 changed files with 22 additions and 17 deletions

View File

@@ -33,6 +33,7 @@ var listCmd = &cobra.Command{
Use: "list",
Short: "A brief description of your command",
Args: cobra.NoArgs,
Aliases: []string{"ls"},
Run: func(cmd *cobra.Command, args []string) {
projects, err := tmux.ListProjects()
if err != nil {

View File

@@ -38,7 +38,7 @@ var cfgFile string
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Version: "0.2.2",
Version: "0.2.3",
Use: "workon [project]",
Short: "Manage tmux sessions",
Long: "",

20
flake.lock generated
View File

@@ -3,11 +3,11 @@
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
@@ -21,11 +21,11 @@
"systems": "systems"
},
"locked": {
"lastModified": 1685518550,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github"
},
"original": {
@@ -36,16 +36,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1686186443,
"narHash": "sha256-Cdz0cYVvS3n2YhyJBgPznIDjsuRyX0OBXkDH3dU/Eo8=",
"lastModified": 1698942558,
"narHash": "sha256-/UmnB+mEd6Eg3mJBrAgqRcyZX//RSjHphcCO7Ig9Bpk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "59fcfbea18ef091907a114ed41ccba6fc926994a",
"rev": "621f51253edffa1d6f08d5fce4f08614c852d17e",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "release-23.05",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}

View File

@@ -2,7 +2,7 @@
description = "Manage tmux for what you work on.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-23.05";
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
@@ -11,13 +11,17 @@
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
{
overlays.default = final: prev: {
inherit (self.packages.${prev.system}) workon;
};
} // flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.workon = pkgs.buildGoModule {
pname = "workon";
version = "0.2.2";
version = "0.2.3";
src = ./.;
vendorSha256 = "sha256-+EFL3cry1hFqVSWxobU6+V/30jbejft8kM5RXgroTxM=";
nativeBuildInputs = with pkgs; [