hiiro 0.1.53 → 0.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hiiro/history.rb +13 -8
- data/lib/hiiro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed4284e83a1b52e665208b5e706de9017e9acfb3eedbcd0e1b265e3719292638
|
|
4
|
+
data.tar.gz: 23dbed41838b15eeaa2f312669da58bd5a2546a0b1cd52b6149b44bf54d7316e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ea8a092c971853fbf396ab63702dabf56e88abb09ca34ab170d45cf8cec0ae5a561ece441768136780f98b024657b93d9d3adb46174d15354fec6a9d3545d6b
|
|
7
|
+
data.tar.gz: 3677c376b5a84c7da0ffe69c10cddceb9c3c9446bfbee8aa37282a1e1b33cbd20534d98e67d6deacbc62a78480393d7b2238b1bb992a714903d670d9014b14cf
|
data/lib/hiiro/history.rb
CHANGED
|
@@ -239,7 +239,12 @@ class Hiiro
|
|
|
239
239
|
add(**context)
|
|
240
240
|
end
|
|
241
241
|
|
|
242
|
-
def add(
|
|
242
|
+
def add(
|
|
243
|
+
description: nil, cmd: nil, source: nil, pwd: nil,
|
|
244
|
+
tmux_session: nil, tmux_window: nil, tmux_pane: nil,
|
|
245
|
+
git_branch: nil, git_sha: nil, git_origin_sha: nil, git_worktree: nil,
|
|
246
|
+
task: nil, subtask: nil, app: nil
|
|
247
|
+
)
|
|
243
248
|
context = gather_context
|
|
244
249
|
|
|
245
250
|
entry_data = {
|
|
@@ -249,13 +254,13 @@ class Hiiro
|
|
|
249
254
|
'cmd' => cmd,
|
|
250
255
|
'pwd' => pwd || context[:pwd],
|
|
251
256
|
'source' => source,
|
|
252
|
-
'tmux_session' => context[:tmux_session],
|
|
253
|
-
'tmux_window' => context[:tmux_window],
|
|
254
|
-
'tmux_pane' => context[:tmux_pane],
|
|
255
|
-
'git_branch' => context[:git_branch],
|
|
256
|
-
'git_sha' => context[:git_sha],
|
|
257
|
-
'git_origin_sha' => context[:git_origin_sha],
|
|
258
|
-
'git_worktree' => context[:git_worktree],
|
|
257
|
+
'tmux_session' => tmux_session || context[:tmux_session],
|
|
258
|
+
'tmux_window' => tmux_window || context[:tmux_window],
|
|
259
|
+
'tmux_pane' => tmux_pane || context[:tmux_pane],
|
|
260
|
+
'git_branch' => git_branch || context[:git_branch],
|
|
261
|
+
'git_sha' => git_sha || context[:git_sha],
|
|
262
|
+
'git_origin_sha' => git_origin_sha || context[:git_origin_sha],
|
|
263
|
+
'git_worktree' => git_worktree || context[:git_worktree],
|
|
259
264
|
'task' => task || context[:task],
|
|
260
265
|
'subtask' => subtask || context[:subtask],
|
|
261
266
|
'app' => app || context[:app],
|
data/lib/hiiro/version.rb
CHANGED