stg 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/actions.rb +1 -1
- data/lib/help.rb +9 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ebc70931cee2053b5b4f7ff6e9db88f8b588dfd456c46c6841c9f1099a4bb4e
|
|
4
|
+
data.tar.gz: 70e8f54fddcfdbedf1f79d2ce0f66bd8df39702acae2ee0529377dc81db5a36c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ba04037ec33573dcfaf4b96459b8f108e04fff35b868b9388a200d566d64a54511312fb09f0521e2ac1cbcf42bfbdd7fa22357c8a6f2490204607cd8fd8b233
|
|
7
|
+
data.tar.gz: fe189c3594e4b19af00263cce356db8cb72a13a7739f5c4ebdf877e1c9d0551c6c71d59aa9629fe3e2cd8d7f8bc5a466cd18b3492acddf97fb089f505b6d6bf8
|
data/lib/actions.rb
CHANGED
data/lib/help.rb
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
module Help
|
|
2
2
|
def print_usage
|
|
3
|
-
usage_error_message = "Usage:
|
|
3
|
+
usage_error_message = "Usage: stg <command> [options]
|
|
4
4
|
|
|
5
5
|
Commands:\n"
|
|
6
6
|
commands_docs = {
|
|
7
|
-
|
|
7
|
+
init: 'Initialize the project',
|
|
8
|
+
stage: 'add a file or directory to be tracked ',
|
|
9
|
+
commit: 'Save the current tracked state ',
|
|
10
|
+
diff: 'get the difference between working directory and the last commit ',
|
|
11
|
+
log: 'print out commit history (limit print by a number `log <number>`) ',
|
|
8
12
|
reset: 'Revert to commit',
|
|
9
|
-
|
|
13
|
+
checkout: 'check a commit or a branch without loss in data',
|
|
14
|
+
branch: 'List all branches. (or creating a branch by `branch <name>`) '
|
|
15
|
+
|
|
10
16
|
}
|
|
11
17
|
max_len = 0
|
|
12
18
|
commands_docs.each_key do |command|
|