You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -84,15 +84,15 @@ dependencies: [
84
84
85
85
**Note:**
86
86
87
-
The install command has a rather interesting method of getting the proper package. Because you can have packages with the same name by different authors, Ether will run a search based on the argument you pass in and get the most stared result. If the name contains a slash (`/`), then the URL will created directly without a search like this:
87
+
The install command has a rather interesting method of getting the proper package. Because you can have packages with the same name by different authors, Ether will run a search based on the argument you pass in and get the most stared result. If the name contains a slash (`/`), then the URL will be created directly without a search like this:
88
88
89
89
https://github.com/<NAME>.git
90
90
91
91
Note that this is case insensitive.
92
92
93
93
### Fix Install
94
94
95
-
Fixes the install process when an error occurs during `install`
95
+
Fixes the install process when an error occurs during `install`, such as a git conflict.
Copy file name to clipboardExpand all lines: Sources/Ether/Configuration.swift
+39-4
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,15 @@ import Bits
29
29
30
30
publicclassConfiguration:Command{
31
31
publicvararguments:[CommandArgument]=[
32
-
CommandArgument.argument(name:"key", help:["The configuration JSON key to set"]),
33
-
CommandArgument.argument(name:"value", help:["The new value for the key passed in"])
32
+
CommandArgument.argument(name:"key", help:[
33
+
"The configuration JSON key to set",
34
+
"Valid keys are:",
35
+
"- access-token: The GitHub access token to use for interacting the the GraphQL API. You can create on at https://github.com/settings/token",
36
+
"- install-commit: The commit message to use on package install. Use &0 as package name placeholder",
37
+
"- remove-commit: The commit message to use on when a package is removed. Use &0 as package name placeholder",
38
+
"- signed-commits: If set to a truthy value (true, yes, y, 1), auto-commits will pass in the '-S' flag"
39
+
]),
40
+
CommandArgument.argument(name:"value", help:["The new value for the key passed in. If no value is passed in, the key will be removed from the config"])
34
41
]
35
42
36
43
publicvaroptions:[CommandOption]=[]
@@ -44,7 +51,7 @@ public class Configuration: Command {
44
51
_ = setter.start(on: context.container)
45
52
46
53
letkey=try context.argument("key")
47
-
letvalue=trycontext.argument("value")
54
+
letvalue= context.arguments["value"]
48
55
letuser=tryProcess.execute("whoami")
49
56
50
57
varconfiguration=tryConfiguration.get()
@@ -92,9 +99,15 @@ public class Configuration: Command {
0 commit comments