ezbash 0.5.4 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ezbash +19 -27
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9098fd668f7d37a4621bc4cd46b549b4f184ba83
|
4
|
+
data.tar.gz: 51bdd9ddf9f86ab84b9505ed39f1f93165c55fa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4752ef2f7ef6bf90f9b45318e053e7847285cf7c86c6436839270392e17f67304f7ab95da581a19167466191f610f7eb2385b5a1210770c731f98d8c55c79522
|
7
|
+
data.tar.gz: f1e81233ffb85191b18ac02e1aa7a82c2d833425ed858eef11ae8c420302dad165ccf9ae52ed38b74114af8c0772f27edda6e71ea4080bcdc7aca26a62014ef8
|
data/bin/ezbash
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
require "pretty_table"
|
2
3
|
|
3
4
|
#Define methods
|
4
5
|
def addbrew()
|
@@ -12,7 +13,7 @@ def addbrew()
|
|
12
13
|
Kernel.system "ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'"
|
13
14
|
userselect = true
|
14
15
|
elsif userreply == 'no'
|
15
|
-
puts
|
16
|
+
puts "That\'s fine! Just keep in mind, the install, uninstall, and search commands won\'t work for you."
|
16
17
|
userselect = true
|
17
18
|
else
|
18
19
|
puts 'Please say yes or no.'
|
@@ -268,34 +269,25 @@ while exitis == 0 do
|
|
268
269
|
program = gets.chomp
|
269
270
|
Kernel.system "#{folder}./#{program}"
|
270
271
|
when 'help'
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
puts "\r"
|
287
|
-
puts "\t change working folder: change the folder you\'ll be working in (e.g. Documents)"
|
288
|
-
puts "\r"
|
289
|
-
puts "\t list files: list all of the files in a given folder (e.g. Downloads)"
|
290
|
-
puts "\r"
|
272
|
+
headers = [ 'Command', 'Action']
|
273
|
+
commands = [
|
274
|
+
["install", "install new programs or 'packages' on your system"],
|
275
|
+
["uninstall", "remove programs or 'packages' from your system"],
|
276
|
+
["search", "search for a program that can be installed with the aforementioned 'install' command"],
|
277
|
+
["copy", "copies a file or folder to another place"],
|
278
|
+
["rename", "renames a file on your computer"],
|
279
|
+
["delete file", "deletes a file on your compter"],
|
280
|
+
["delete folder", "deletes a folder on your computer (type yes at every promt)."],
|
281
|
+
["create file", "creates an empty text file on your computer (.rb, .py, .java, etc. count as text files)"],
|
282
|
+
["change working folder", "change the folder you\'ll be working in (e.g. Documents)"],
|
283
|
+
["list files", "list all of the files in a given folder (e.g. Downloads)"],
|
284
|
+
["compile", "compiles a c++ file (e.g. foo.cpp)"],
|
285
|
+
["run c++ program", "runs a c++ program compiled with the aforementioned command"],
|
286
|
+
["exit", "exits ezbash"] ]
|
291
287
|
# puts "\t edit file: edits a text file in a bare-bones, quick editor (.rb, .html, .java, etc. count as text files)"
|
292
288
|
# puts "\r"
|
293
|
-
|
294
|
-
|
295
|
-
puts "\t run c++ program: runs a c++ program compiled with the aforementioned command"
|
296
|
-
puts "\r"
|
297
|
-
puts "\t exit: exits ezbash"
|
298
|
-
puts "\r"
|
289
|
+
puts PrettyTable.new(commands, headers).to_s
|
290
|
+
puts "\r"
|
299
291
|
when 'exit'
|
300
292
|
abort
|
301
293
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezbash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Saunders
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2015-02-17 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: pretty_table
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description: Users are thrown into a simplified shell with only a 'help' command as
|
14
28
|
a guide.
|
15
29
|
email: timandmoby@gmail.com
|