reposh 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.mkd +67 -0
  2. data/VERSION +1 -1
  3. data/lib/reposh.rb +3 -1
  4. metadata +5 -8
  5. data/README +0 -49
@@ -0,0 +1,67 @@
1
+ Reposh
2
+ ======
3
+
4
+ Reposh is a shell for VCS like svn, git, etc.
5
+
6
+ Without reposh:
7
+
8
+ $ git di
9
+ $ git ci
10
+ $ git st
11
+ $ ls
12
+
13
+ With reposh:
14
+
15
+ $ reposh
16
+ Welcome to reposh x.y.z (mode: git)
17
+ > di
18
+ > ci
19
+ > # just push [Enter] for 'git status'
20
+ > :ls # start with ':' to run shell commands
21
+
22
+ You can also define custom command in your ~/.reposh.yaml.
23
+
24
+ Install
25
+ -------
26
+
27
+ (0) gem install reposh
28
+ (1) write /home/(your name)/.reposh.yaml
29
+ (2) cd to your working directory
30
+ (3) reposh.rb [Enter]
31
+
32
+ Options
33
+ -------
34
+
35
+ see reposh --help
36
+
37
+ Special commands
38
+ ----------------
39
+
40
+ * exit, quit, ^D(^Z)
41
+ * Quit reposh
42
+ * :ls
43
+ * Run "ls" by current shell
44
+ * [Enter]
45
+ * Equals to "status" (you can change this by .reposh.yaml)
46
+ * %ruby ...
47
+ * eval string as Ruby program (like ruby -e)
48
+
49
+ Supported VCSs
50
+ --------------
51
+
52
+ * Git (directory .git)
53
+ * Mercurial (directory .hg)
54
+ * Darcs (directory _darcs)
55
+ * Subversion (directory .svn)
56
+ * SVK (none of above)
57
+
58
+ Configuration
59
+ -------------
60
+
61
+ See sample.reposh.yaml
62
+
63
+ Contact
64
+ =======
65
+
66
+ http://twitter.com/yhara_en
67
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -45,6 +45,7 @@ class Reposh
45
45
  @editing_mode = @conf["global"]["editing_mode"]
46
46
  pathext = @conf["global"]["pathext"]
47
47
  @prompt = get_conf(@system_name, "prompt")
48
+ @ruby_prompt = get_conf(@system_name, "ruby_prompt")
48
49
  binpath = get_conf(@system_name, "binpath") || @system_name
49
50
  default_cmd = get_conf(@system_name, "default_cmd")
50
51
 
@@ -121,7 +122,8 @@ class Reposh
121
122
 
122
123
  puts "Welcome to reposh #{VERSION} (mode: #{@system_name})"
123
124
  loop do
124
- cmd = Readline.readline(@prompt, true)
125
+ prompt = if @ruby_prompt then eval(@ruby_prompt) else @prompt end
126
+ cmd = Readline.readline(prompt, true)
125
127
  @commands.dispatch(cmd, @system_name)
126
128
  end
127
129
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reposh
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 1
9
- - 9
10
- version: 0.1.9
8
+ - 10
9
+ version: 0.1.10
11
10
  platform: ruby
12
11
  authors:
13
12
  - Yutaka HARA
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-08-19 00:00:00 +09:00
17
+ date: 2010-12-03 00:00:00 +09:00
19
18
  default_executable: reposh
20
19
  dependencies: []
21
20
 
@@ -26,9 +25,9 @@ executables:
26
25
  extensions: []
27
26
 
28
27
  extra_rdoc_files:
29
- - README
28
+ - README.mkd
30
29
  files:
31
- - README
30
+ - README.mkd
32
31
  - Rakefile
33
32
  - VERSION
34
33
  - bin/reposh
@@ -49,7 +48,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
49
48
  requirements:
50
49
  - - ">="
51
50
  - !ruby/object:Gem::Version
52
- hash: 3
53
51
  segments:
54
52
  - 0
55
53
  version: "0"
@@ -58,7 +56,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
56
  requirements:
59
57
  - - ">="
60
58
  - !ruby/object:Gem::Version
61
- hash: 3
62
59
  segments:
63
60
  - 0
64
61
  version: "0"
data/README DELETED
@@ -1,49 +0,0 @@
1
- == Reposh - what's this?
2
-
3
- Without reposh, you type like this:
4
- $ svk di
5
- $ svk ci
6
- $ svk st
7
- $ ls
8
- but this is not DRY :)
9
-
10
- With reposh, you can omit typing all 'svk's:
11
- $ reposh
12
- Welcome to reposh x.y.z (mode: svk)
13
- > di
14
- > ci
15
- > # just push [Enter] for 'svk status'
16
- > :ls # start with ':' to run shell commands
17
-
18
- == How to use
19
-
20
- (1) write /home/(your name)/.reposh.yaml
21
- (2) cd to your working directory
22
- (3) reposh.rb [Enter]
23
-
24
- == Options
25
-
26
- see reposh.rb --help
27
-
28
- == Commands
29
-
30
- * exit, quit, ^D(^Z)
31
- * Quit reposh
32
- * :ls ~/
33
- * Run "ls ~/" by shell
34
- * [Enter]
35
- * Equals to "status" (you can change this by .reposh.yaml)
36
- * %reload
37
- * Reload reposh.rb (for reposh developper)
38
- * Some more commands starts with % are supported: see source
39
-
40
- All other commands are passed to vcs system.
41
-
42
- == Configuration
43
-
44
- see sample.reposh.yaml
45
-
46
- == Contact
47
-
48
- http://mono.kmc.gr.jp/~yhara/w?Reposh
49
-