chronicle-shell 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b88a844a7e429898c8cd9851e9326be1cb1a61cb7fb0598d44456519941d3b9
4
- data.tar.gz: 51db09766b5dacf94e4cd92ea5531cdb6475e5afa4759d48acb7e3e8f224cc36
3
+ metadata.gz: bd121be7bcf453873b98d815bd22b5ef2a685b2e5752d88982ab435ded4e9a1d
4
+ data.tar.gz: f175ee27114f9b02344387e06a19122f400c37291e67721ad7aecfb32dc77016
5
5
  SHA512:
6
- metadata.gz: 0a4f39726fe053ad6b5341cc5bece31eafb52bfde210fc7cb601cf388b4f7d131d0828d656946f436c455632d9c4f688e3c933f2069fcd55aef7c3204804d9f1
7
- data.tar.gz: e4941551b42d16d90ac55345395d7b7bfbd73873a05dde157d129f4add9b0f839a4e55bf90705cd048e3a1c91e261f34aaf346933ebcc948630caf07df179c37
6
+ metadata.gz: 4e652cbf303a7f5407d3d1bf67c688932836551760e5966a194ee75a2944957a958f3500e371cd116ad8050d798f8667fe24ad1eb01ad1425adf1d6716b909ab
7
+ data.tar.gz: 434efb8f969f5c28a6e49a89ab88a8193d9dd195365bd7be1d08d83b3cee1c3f8752c71b5e32604dd3bf5a15f49a0f485090d77b0832561f2d19219d0fa34d04
data/README.md CHANGED
@@ -1,19 +1,25 @@
1
1
  # Chronicle::Shell
2
+ [![Gem Version](https://badge.fury.io/rb/chronicle-shell.svg)](https://badge.fury.io/rb/chronicle-shell)
2
3
 
3
4
  Shell importer for [chronicle-etl](https://github.com/chronicle-app/chronicle-etl)
4
5
 
5
6
  ## Available Connectors
6
7
  ### Extractors
7
- - `shell-history` - Extract shell history from bash or zsh
8
+ - `shell:history` - Extract shell history from bash or zsh
8
9
 
9
10
  ### Transformers
10
- - `shell-history` - Process a shell command
11
+ - `shell:history` - Turn a shell command into Chronicle Schema
11
12
 
12
- ## Usage
13
+ ## Usage and examples
13
14
 
14
15
  ```bash
16
+ # install chronicle-etl and then this plugin
15
17
  gem install chronicle-etl
16
18
  chronicle-etl plugins:install shell
17
19
 
18
- chronicle-etl --extractor shell-history --since "2022-02-07" --transformer shell-history --loader table
20
+ # output commands since Feb 7 as json
21
+ chronicle-etl --extractor shell:history --transformer shell:history --since "2022-02-07" --loader json
22
+
23
+ # Show recent commands sorted by frequency of use
24
+ chronicle-etl --extractor shell:history --limit 500 --fields command --silent | sort | uniq -c | sort -nr
19
25
  ```
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Chronicle
4
4
  module Shell
5
- VERSION = "0.2.2"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chronicle-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Louis