learn-tool 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed624173c2e0046764f7bcd2197cc5619dfce0ae257aa47bda86575f1e960e96
4
- data.tar.gz: fb6829bc23348f6c9ef824293eefe347df753b8f49833298304438cf3e7740cb
3
+ metadata.gz: 8a512d49360188f0eb9556ec11b02fc47a7fbee31216c45d92ebdf1407265e39
4
+ data.tar.gz: 635870bc64c05d5b994c3a45c2b38565a5e53012c6abe46222f398af8aa8e0a3
5
5
  SHA512:
6
- metadata.gz: cb9e5d938d2cb2173b61ab14364fed06a2f0261e35c6004b58c422758b1bf8411a446beafe33c969ad14097d49f47e58bd33ae715f86d9efd35d40290f464614
7
- data.tar.gz: 64fb38bd048b6a09e0a4ac0caccc4d27153e585546aeaee78caf73c556cfbc1a9874514f67615db04112ec60b15fb1cf3cd1f281ae5527ac36a777b6e8bb1f40
6
+ metadata.gz: a9baa9b7a741ce181470fa7f051641d737f7f80fb8da4b2e7bdc4ef8dffa14df1ae576cf124f9bafab33dbb9fba7049521addeccbeb076edb3c512a3d678b175
7
+ data.tar.gz: eaec1d1f16e457a2ea30a2dba75db7f716987bbacfc01eeda1fde853452c9cc46508c7612454c3fbdd70a10bcf212a7aaa2719503272a1ff717da5564cd2bc85
data/README.md CHANGED
@@ -39,7 +39,7 @@ To create a new repository, navigate to the folder where you'd like your
39
39
  repo to be duplicated locally and type:
40
40
 
41
41
  ```sh
42
- learn-tool create
42
+ learn-tool --create
43
43
  ```
44
44
 
45
45
  Follow the prompts to create a blank readme, code-along or lab repository. The
@@ -59,7 +59,7 @@ For other lesson types, start with a Readme.
59
59
  To duplicate an existing repository, type:
60
60
 
61
61
  ```sh
62
- learn-tool duplicate
62
+ learn-tool --duplicate
63
63
  ```
64
64
 
65
65
  This command will make an exact copy of another repository. For example, you
@@ -70,7 +70,7 @@ the configuration of an existing lab.
70
70
  consider creating a fork and submit a pull request on the **original lesson**
71
71
  rather than creating an altered duplicate.
72
72
 
73
- ## Lesson Repair
73
+ ## Lesson Linting and Repair
74
74
 
75
75
  If you already have a repository or created one manually, it is important that
76
76
  certain files are present:
@@ -83,13 +83,30 @@ certain files are present:
83
83
  - `CONTRIBUTING.md` - This file contains information on how to contribute to our
84
84
  content.
85
85
 
86
+ To check if these files are present and correct, from the lesson directory type:
87
+
88
+ ```sh
89
+ learn-tool --lint
90
+ ```
91
+
92
+ Alternatively, you can provide an absolute path to the directory you would like to lint:
93
+
94
+ ```sh
95
+ learn-tool --lint /Users/johnboy/lessons/jukebox-cli
96
+ ```
97
+
86
98
  To quickly add or fix these files, type:
87
99
 
88
100
  ```sh
89
- learn-tool repair
101
+ learn-tool --repair
90
102
  ```
91
103
 
92
- This command will replace or add the required files to the current repository.
104
+ This command will replace or add the required files to the current repository. You can pass an absolute path of another directory you would like to repair:
105
+
106
+ ```sh
107
+ learn-tool --repair /Users/johnboy/lessons/jukebox-cli
108
+ ```
109
+ **Warning**: Repairing will overwrite any existing support files.
93
110
 
94
111
  ## Resources
95
112
 
@@ -1,4 +1,3 @@
1
- require 'pry'
2
1
  class LearnBase
3
2
 
4
3
  GITHUB_ORG = 'https://api.github.com/repos/learn-co-curriculum/'
@@ -108,4 +107,4 @@ class LearnBase
108
107
  result = Open3.capture2e('ssh -T git@github.com').first
109
108
  result.include?("You've successfully authenticated")
110
109
  end
111
- end
110
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - flatironschool