-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unify command usage texts about app identifiers and app directory (ex…
…cept for download)
- Loading branch information
Showing
6 changed files
with
60 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package usage | ||
|
||
const AppDirectoryArgument string = `If [app directory] is specified, that directory will be used to read the | ||
app manifest for the default deployment information. | ||
If no [app directory] is specified, the current working directory is used.` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package usage | ||
|
||
import "fmt" | ||
|
||
const appIdentifierFormat string = `The app %s is specified firstly by --app and | ||
--organization flags, secondly by the deployment section in the manifest | ||
(numerous.toml), and finally by the local configuration (see "numerous config"). | ||
If no app is identified either by --app or by the default deployment section in | ||
the manifest, the app name in the manifest is converted into a slug, e.g. | ||
"My Awesome App" would become "my-awesome-app". | ||
App and organization identifiers must contain only lower-case alphanumeric | ||
characters and dashes.` | ||
|
||
func AppIdentifier(action string) string { | ||
return fmt.Sprintf(appIdentifierFormat, action) | ||
} |