monos 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +111 -2
- data/Rakefile +1 -1
- data/lib/mono/base.rb +7 -1
- data/lib/mono/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37982c586e6dd99a4c47dd80a839d74a22cf4f81
|
4
|
+
data.tar.gz: 5f3a65a39ebda3e3675231a5f337cae94c41458a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f046ff8ee54e71f0375c6bf7e97f0837dc3433dca548a667a053e95d39802801a2eb917b8ab3073b17a2c6dffb3393d9c30c125ce656005a8700cfb36612d772
|
7
|
+
data.tar.gz: 456979f694b1f742b6f28403df18f7735ca147be969b3f055910f906178067f10fa09a55d1b526f313ad466362e770ed0a26a825911780bbb97934be7f6175cc
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# monos - tools and (startup) scripts
|
1
|
+
# monos - monorepo / mono source tree tools and (startup) scripts
|
2
2
|
|
3
3
|
|
4
4
|
* home :: [github.com/sportdb/sport.db](https://github.com/sportdb/sport.db)
|
@@ -9,9 +9,118 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
+
|
12
13
|
## Usage
|
13
14
|
|
14
|
-
|
15
|
+
The `mono` (or short `mo`) command line tool lets you run
|
16
|
+
git commands on multiple repo(sitories) with a single command.
|
17
|
+
|
18
|
+
Add all repo(sitories) to the `monorepo.yml` that you want
|
19
|
+
to be part of the "virtual" all-in-one / single mono source tree.
|
20
|
+
Example:
|
21
|
+
|
22
|
+
``` yml
|
23
|
+
####################
|
24
|
+
# checkout skripts (auto-update machinery)
|
25
|
+
yorobot:
|
26
|
+
- cache.csv ## incl. self
|
27
|
+
- sport.db.more
|
28
|
+
- football.db
|
29
|
+
- football.csv
|
30
|
+
|
31
|
+
###############
|
32
|
+
# use latest sportdb machinery (from source)
|
33
|
+
sportdb:
|
34
|
+
- sport.db
|
35
|
+
- sport.db.sources
|
36
|
+
- football.db
|
37
|
+
|
38
|
+
#####################
|
39
|
+
# football.db - open football
|
40
|
+
openfootball:
|
41
|
+
- leagues
|
42
|
+
- clubs
|
43
|
+
```
|
44
|
+
|
45
|
+
|
46
|
+
### MOPATH - The monorepo (single source tree) root
|
47
|
+
|
48
|
+
Use the `MOPATH` environment variable to set the monorepo (single source tree) root
|
49
|
+
path. The builtin default for now is `/sites`.
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
### Commands
|
55
|
+
|
56
|
+
`status` • `sync`
|
57
|
+
|
58
|
+
### `status` Command
|
59
|
+
|
60
|
+
Use the `status` command to check for changes (will use `git status --short`) on all repos. Example:
|
61
|
+
|
62
|
+
´´´
|
63
|
+
$ mono status
|
64
|
+
$ mono # status is the default command
|
65
|
+
$ mo status # mo is a "shortcut" convenience alias for mono
|
66
|
+
$ mo stat
|
67
|
+
$ mo
|
68
|
+
´´´
|
69
|
+
|
70
|
+
resulting in something like:
|
71
|
+
|
72
|
+
´´´
|
73
|
+
2 change(s) in 9 repo(s) @ 3 org(s)
|
74
|
+
|
75
|
+
== yorobot@cache.csv - CHANGES:
|
76
|
+
M monos/Manifest.txt
|
77
|
+
M monos/README.md
|
78
|
+
M monos/Rakefile
|
79
|
+
M monos/lib/mono/git/status.rb
|
80
|
+
M monos/lib/mono/git/sync.rb
|
81
|
+
M monos/lib/mono/version.rb
|
82
|
+
RM monos/lib/monoscript.rb -> monos/lib/monos.rb
|
83
|
+
M monos/test/test_base.rb
|
84
|
+
?? monos/bin/
|
85
|
+
|
86
|
+
== yorobot@football.csv - CHANGES:
|
87
|
+
?? footballdata/
|
88
|
+
´´´
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
### `sync` Command
|
93
|
+
|
94
|
+
Note: `install` or `get` or `up` are all aliases that you can use for `sync`.
|
95
|
+
|
96
|
+
Note: `moget` is a shortcut convenience command for `mono get` (or, that is, `mono sync`).
|
97
|
+
|
98
|
+
|
99
|
+
Use the `sync` command to sync up (pull) changes (will use `git pull --ff-only`) on all existing repos and `git clone` for new not-yet-cloned repos.
|
100
|
+
|
101
|
+
Example:
|
102
|
+
|
103
|
+
´´´
|
104
|
+
$ mono sync
|
105
|
+
$ mono install # install is an alias for sync
|
106
|
+
$ mono get # get is another alias for sync
|
107
|
+
$ mo sync # mo is a "shortcut" convenience alias for mono
|
108
|
+
$ mo get
|
109
|
+
$ moget # moget is a "shortcut" convenience alis for mono get
|
110
|
+
´´´
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
That's all for now.
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
## Installation
|
119
|
+
|
120
|
+
Use
|
121
|
+
|
122
|
+
gem install monos
|
123
|
+
|
15
124
|
|
16
125
|
## License
|
17
126
|
|
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ Hoe.spec 'monos' do
|
|
5
5
|
|
6
6
|
self.version = Mono::Module::VERSION
|
7
7
|
|
8
|
-
self.summary = "monos - tools and (startup) scripts
|
8
|
+
self.summary = "monos - monorepo / mono source tree tools and (startup) scripts"
|
9
9
|
self.description = summary
|
10
10
|
|
11
11
|
self.urls = ['https://github.com/sportdb/sport.db']
|
data/lib/mono/base.rb
CHANGED
data/lib/mono/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.16'
|
41
|
-
description: monos - tools and (startup) scripts
|
41
|
+
description: monos - monorepo / mono source tree tools and (startup) scripts
|
42
42
|
email: opensport@googlegroups.com
|
43
43
|
executables:
|
44
44
|
- mo
|
@@ -93,5 +93,5 @@ rubyforge_project:
|
|
93
93
|
rubygems_version: 2.5.2
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
|
-
summary: monos - tools and (startup) scripts
|
96
|
+
summary: monos - monorepo / mono source tree tools and (startup) scripts
|
97
97
|
test_files: []
|