Skip to content

Commit 3b1325e

Browse files
authored
chore(config): display ptype refs (#71)
1 parent 0c1a806 commit 3b1325e

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

cmd/config.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ func (d *DryccCmd) ConfigInfo(appID string, ptype string, group string, version
5151
}
5252
}
5353
}
54+
55+
for k, v := range config.ValuesRefs {
56+
if (ptype != "" && k == ptype) ||
57+
(ptype == "" && group == "") {
58+
if k != "" {
59+
if len(v) != 0 {
60+
temp := cv.Ptype[k]
61+
temp.Ref = v
62+
cv.Ptype[k] = temp
63+
}
64+
}
65+
}
66+
}
67+
5468
if len(cv.Ptype) == 0 && len(cv.Group) == 0 {
5569
d.Println()
5670
return nil

drycc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Shortcut commands, use 'drycc shortcuts' to see all:
8888
open open a URL to the app in a browser
8989
pull imports an image and deploys as a new release
9090
run run a command in an ephemeral app container
91-
scale scale processes by type (web=2, worker=1)
91+
scale scale processes by type (web=2 worker=1)
9292
9393
Use 'git push drycc main' to deploy to an application.
9494
`

parser/domains.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Options:
5353
-a --app=<app>
5454
the uniquely identifiable name for the application.
5555
-p --ptype=<ptype>
56-
the ptype type for domain, default[web].
56+
the ptype for domain, default[web].
5757
`
5858

5959
args, err := docopt.ParseArgs(usage, argv, "")

parser/ps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Options:
8484
the number of lines to display, default to 300 lines, -1 showing all log lines.
8585
-f --follow
8686
specify if the logs should be streamed.
87-
-c --container=<container>
87+
--container=<container>
8888
print the logs of this container.
8989
--previous
9090
print the logs for the previous instance of the container in a pod if it exists.

0 commit comments

Comments
 (0)