mkalias 0.1.8 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -4
- data/bin/mkalias +14 -3
- data/lib/mkalias/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47afe95b6d21718aa2ddc38cff039240ad752df6
|
4
|
+
data.tar.gz: ce17f2e6812e504fbbab696d3db1f67121d1f18b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ca63634a5aa842e18746706c1fa3ba177dae213820a6c2b3672c9aa1aca59e3c0764068d06d1f79f8ae22feab8904d39c7e504e25bf9bc8825a7e7c9f48e4a6
|
7
|
+
data.tar.gz: 78cf09237c450e027401c2eb6c7c3f9cd9535271a92bc6f0d6c63aaa24ff1e9b07f896177119d442f7fbc30833ba206fc3996d9fcaeb95ea782484095b7118a1
|
data/README.md
CHANGED
@@ -22,10 +22,22 @@ Or install it yourself as:
|
|
22
22
|
## Usage
|
23
23
|
|
24
24
|
run: $ mkalias [option]
|
25
|
-
|
26
|
-
option:
|
27
|
-
|
28
|
-
|
25
|
+
|
26
|
+
option: new -> mkalias new [alias] [command 1] [command 2] ... [command n]
|
27
|
+
- Create a new alias to run the commands
|
28
|
+
|
29
|
+
option: list -> mkalias list
|
30
|
+
- List all alias
|
31
|
+
|
32
|
+
option: show -> mkalias show
|
33
|
+
- Show commands of all alias
|
34
|
+
|
35
|
+
option: show -> mkalias show [alias 1] [alias 2] ... [alias n]
|
36
|
+
- Show commands of the specified alias
|
37
|
+
|
38
|
+
option: remove -> mkalias remove [alias 1] [alias 2] ... [alias n]
|
39
|
+
- Remove the specified alias
|
40
|
+
|
29
41
|
Attention: To make alias with args use #. Example:
|
30
42
|
$ mkalias new [alias] "echo #1 #2 #3"
|
31
43
|
Then you can use: $ [alias] arg1 arg2 arg3
|
data/bin/mkalias
CHANGED
@@ -7,12 +7,23 @@ VALID_OPTIONS = ['new', 'list', 'show', 'remove']
|
|
7
7
|
|
8
8
|
def usage
|
9
9
|
puts "Usage: mkalias [option]"
|
10
|
+
puts ""
|
10
11
|
puts "option: new \t -> mkalias new [alias] [command 1] [command 2] ..." \
|
11
12
|
" [command n]"
|
13
|
+
puts "- Create a new alias to run the commands"
|
14
|
+
puts ""
|
12
15
|
puts "option: list \t -> mkalias list"
|
13
|
-
puts "
|
14
|
-
puts "
|
15
|
-
puts "\
|
16
|
+
puts "- List all alias"
|
17
|
+
puts ""
|
18
|
+
puts "option: show \t -> mkalias show"
|
19
|
+
puts "- Show commands of all alias"
|
20
|
+
puts ""
|
21
|
+
puts "option: show \t -> mkalias show [alias 1] [alias 2] ... [alias n]"
|
22
|
+
puts "- Show commands of the specified alias"
|
23
|
+
puts ""
|
24
|
+
puts "option: remove \t -> mkalias remove [alias 1] [alias 2] ... [alias n]"
|
25
|
+
puts "- Remove the specified alias"
|
26
|
+
puts ""
|
16
27
|
puts "Attention: To make alias with args use #. Example:"
|
17
28
|
puts " $ mkalias new [alias] \"echo #1 #2 #3\""
|
18
29
|
puts " - Then you can use: $ [alias] arg1 arg2 arg3"
|
data/lib/mkalias/version.rb
CHANGED