-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Get application, version, and database automatically (#31)
Gets application, and version from package.json if it exists in the current working directory. Gets database from SYMBOL_UPLOAD_DATABASE env variable. Fixes #21
- Loading branch information
Showing
7 changed files
with
153 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules | ||
dist | ||
dist | ||
.env | ||
.DS_Store |
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 |
---|---|---|
|
@@ -16,30 +16,35 @@ bobby@BugSplat % ~ % symbol-upload -h | |
|
||
Usage | ||
|
||
-h, --help Print this usage guide. | ||
-b, --database string Your BugSplat database name. | ||
-a, --application string The name of your application. The value of application must match the | ||
value used to post crash reports. | ||
-v, --version string Your application's version. The value of version must match the value | ||
used to post crash reports. | ||
-u, --user string (optional) The email address used to log into your BugSplat account. If provided | ||
--password must also be provided. This value can also be provided via the | ||
SYMBOL_UPLOAD_USER environment variable. | ||
-p, --password string (optional) The password for your BugSplat account. If provided --user must also be | ||
provided. This value can also be provided via the SYMBOL_UPLOAD_PASSWORD | ||
environment variable. | ||
-i, --clientId string (optional) An OAuth2 Client Credentials Client ID for the specified database. If | ||
provided --clientSecret must also be provided. This value can also be | ||
provided via the SYMBOL_UPLOAD_CLIENT_ID environment variable. | ||
-s, --clientSecret string (optional) An OAuth2 Client Credentials Client Secret for the specified database. If | ||
provided --clientId must also be provided. This value can also be | ||
provided via the SYMBOL_UPLOAD_CLIENT_SECRET environment variable. | ||
-r, --remove Removes symbols for a specified database, application, and version. If | ||
this option is provided no other actions are taken. | ||
-f, --files string (optional) Glob pattern that specifies a set of files to upload. Defaults to | ||
'*.js.map' | ||
-d, --directory string (optional) Path of the base directory used to search for symbol files. This value | ||
will be combined with the --files glob. Defaults to '.' | ||
-h, --help Print this usage guide. | ||
-b, --database string Your BugSplat database name. The value of database must match the value used | ||
to post crash reports. This value can also be provided via the | ||
BUGSPLAT_DATABASE environment variable. | ||
-a, --application string The name of your application. The value of application must match the value | ||
used to post crash reports. If not provided symbol-upload will attempt to use | ||
the value of the name field in package.json if it exists in the current | ||
working directory. | ||
-v, --version string Your application's version. The value of version must match the value used to | ||
post crash reports. If not provided symbol-upload will attempt to use the | ||
value of the version field in package.json if it exists in the current | ||
working directory. | ||
-u, --user string (optional) The email address used to log into your BugSplat account. If provided | ||
--password must also be provided. This value can also be provided via the | ||
SYMBOL_UPLOAD_USER environment variable. | ||
-p, --password string (optional) The password for your BugSplat account. If provided --user must also be | ||
provided. This value can also be provided via the SYMBOL_UPLOAD_PASSWORD | ||
environment variable. | ||
-i, --clientId string (optional) An OAuth2 Client Credentials Client ID for the specified database. If | ||
provided --clientSecret must also be provided. This value can also be | ||
provided via the SYMBOL_UPLOAD_CLIENT_ID environment variable. | ||
-s, --clientSecret string (optional) An OAuth2 Client Credentials Client Secret for the specified database. If | ||
provided --clientId must also be provided. This value can also be provided | ||
via the SYMBOL_UPLOAD_CLIENT_SECRET environment variable. | ||
-r, --remove Removes symbols for a specified database, application, and version. If this | ||
option is provided no other actions are taken. | ||
-f, --files string (optional) Glob pattern that specifies a set of files to upload. Defaults to '*.js.map' | ||
-d, --directory string (optional) Path of the base directory used to search for symbol files. This value will | ||
be combined with the --files glob. Defaults to '.' | ||
The -u and -p arguments are not required if you set the environment variables | ||
SYMBOL_UPLOAD_USER and SYMBOL_UPLOAD_PASSWORD, or provide a clientId and | ||
|
@@ -61,7 +66,7 @@ Links | |
💻 https://github.com/BugSplat-Git/symbol-upload | ||
💌 [email protected] | ||
💌 [email protected] | ||
``` | ||
3. Run symbol-upload specifying a [glob](https://www.npmjs.com/package/glob#glob-primer) pattern for `-f` and a path with forward slashes for `-d` | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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