shellplay 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +32 -0
  4. data/bin/shellrecord +4 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7848531f56a521eeee8cb664f5ae436e40ebe4cf
4
- data.tar.gz: e30a9160224d17cd9c604b48bff2d8b6704360da
3
+ metadata.gz: 39699fdb96d41ece0aac692ab591f4ac4ac0a7c6
4
+ data.tar.gz: b3749683977e0bcedce2cde2741cf9be37cd17c4
5
5
  SHA512:
6
- metadata.gz: 53ee1a566f70b28eaf8ba0df1faef969524d506cca770a469f0f71034b0c59152e994722f112c65ea688ed37c2f1c008a7e21c0d5adb402a2a2b233a29b0774f
7
- data.tar.gz: 432664080117d2040c5349d70c13eb0f275528ea0ce13fa6c1330ea8181d7fc842eddb6bc15703420ddf6d6c60f45445919b40e39912e46ed8ff096585d83090
6
+ metadata.gz: 4ca057f38b7f7b9a2ca37ba3462173e73252d7b644536bf4e56260985c099ddc4b85201f319b735aa491a4b0eb9f31fb01b61372cd44b6c51fee0258a85cd93c
7
+ data.tar.gz: 64a96b31b6fee9a27295fef342a170cca0d560ed0669f933a1605a359e9d6a4bea4018a9ff0c9fd4e19b64b9e3e7aaee968d50259b4b435ed078b6297c1a6d86
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Shellplay Changelog
2
2
  =========================
3
3
 
4
+ v0.0.12 - 2014-08-15
5
+ -----------------
6
+ - fix recorder to take account of `cd` properly
7
+ - fix recorder cmmand execution
8
+
4
9
  v0.0.11 - 2014-08-14
5
10
  ------------------
6
11
  - made possible to open a remote json file with `shellplay http://example.com/something.json`
data/README.md CHANGED
@@ -31,6 +31,38 @@ You will be prompted to provide a new title and a new name, and it will save the
31
31
 
32
32
  The session file being a pretty-formatted json file, it's also convenient to just edit it for fixes or adjustments. Especially as this tool is still in development and all the optimal edit features are not yet implemented.
33
33
 
34
+ During recording you can use various tricks:
35
+
36
+ ```
37
+ > Newprompt
38
+ will change the prompt from now on, on next screens
39
+
40
+ d
41
+ will delete last recorded screen
42
+
43
+ q
44
+ finishes the recording
45
+
46
+ <enter>
47
+ will introduce a blank screen
48
+
49
+ ? something
50
+ will fake a command. Convenient when you simulate a command on a remote host and then you can copy paste the comamnd result below that one. The output is ended if you input a . (dot) alone on a line (like with the 'mail' command).
51
+
52
+ # something
53
+ will not display the command, only the output
54
+
55
+ ## something
56
+ will not display the command, and will not display the play prompt
57
+
58
+ / something
59
+ will issue a clear before display of the screen
60
+
61
+ ?##/ something
62
+ typical combination to write full-text screens for intro, outro or just text screens. example at https://gist.github.com/mose/99843942efb9e275638b
63
+ Note that you can use escape chars like when you build a bash prompt, for colors.
64
+ ```
65
+
34
66
  ## Playing a session
35
67
 
36
68
  For playing
data/bin/shellrecord CHANGED
@@ -93,7 +93,7 @@ while continue do
93
93
  })
94
94
  else
95
95
  start_time = Time.now
96
- Open3.popen3(command) do |i, o, e, t|
96
+ Open3.popen3("bash","-l", "-c", command) do |i, o, e, t|
97
97
  screen = Shellplay::Screen.new
98
98
  out = o.read
99
99
  err = e.read
@@ -117,6 +117,9 @@ while continue do
117
117
  puts Paint[line, :red]
118
118
  end
119
119
  end
120
+ if /^cd (.*)$/.match command
121
+ Dir.chdir($1)
122
+ end
120
123
  end
121
124
  session.next
122
125
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - mose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-14 00:00:00.000000000 Z
11
+ date: 2014-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paint