Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync from forked project #2

Merged
merged 5 commits into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,25 @@ You can also change it to NoTestRun or anything else from the available test lev

**SFDX Deploy Tool** is now ready for use.

### Usage
### Usage for Windows

You just need to make sure that the file **sfdxdeploytool.bat** and **config.txt** are in the same folder.
After configuring, double click on **sfdxdeploytool.bat** and you're good to go. In case you need a demo,
I have written a blog post for the same for the same that can be viewed [here](https://www.sfdcstop.com/2019/06/sfdx-deploy-tool.html).
I have written a blog post for the same that can be viewed [here](https://www.sfdcstop.com/2019/06/sfdx-deploy-tool.html).

### Usage for macOS

You just need to make sure that the file **sfdxdeploytool.command** and **config.txt** are in the same folder.
After configuring, double click on **sfdxdeploytool.command** and you're good to go. In case you need a demo,
I have written a blog post for the same that can be viewed [here](https://www.sfdcstop.com/2019/06/sfdx-deploy-tool.html). This blog post mainly specifies the execution using windows operating system. However, the tool will work exactly the same in case of macOS as well.

In case you face any permission issue while executing **sfdxdeploytool.command** file, run the below command in terminal after navigating to SFDX-Deploy-Tool folder:

```
chmod 755 sfdxdeploytool.command
```

This will make the file executable in your system so that you can use it easily.

## Tools and Softwares used

Expand All @@ -60,7 +74,7 @@ I have written a blog post for the same for the same that can be viewed [here](h
## Todo

- [x] User should be able to fetch, validate, deploy and un-deploy metadata.
- [ ] Support for mac.
- [x] Support for mac.

## Contributing

Expand Down
17 changes: 8 additions & 9 deletions sfdxdeploytool.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
echo.
echo Welcome to SFDX Deployment Tool for Windows..!!

goto :readConfig

:: Reading configuration
:readConfig
cls
echo ----------config----------
for /f "tokens=1,2 delims==" %%a in (config.txt) do (
echo %%a: %%b
Expand Down Expand Up @@ -196,7 +195,7 @@ if %errorlevel%==1 (
)
echo.
pause
goto startMenu
goto readConfig

:extractFetchedMetadata
cls
Expand All @@ -213,7 +212,7 @@ if %errorlevel%==1 (
)
echo.
pause
goto startMenu
goto readConfig

:: Validating the metadata in destination org
:validateMetadata
Expand All @@ -240,7 +239,7 @@ if %errorlevel%==1 (
)
echo.
pause
goto startMenu
goto readConfig

:: Deploying the metadata in destination org
:deployMetadata
Expand All @@ -267,7 +266,7 @@ if %errorlevel%==1 (
)
echo.
pause
goto startMenu
goto readConfig

:: Validating the extracted metadata in destination org
:validateExtractedMetadata
Expand All @@ -294,7 +293,7 @@ if %errorlevel%==1 (
)
echo.
pause
goto startMenu
goto readConfig

:: Deploying the extracted metadata in destination org
:deployExtractedMetadata
Expand All @@ -321,7 +320,7 @@ if %errorlevel%==1 (
)
echo.
pause
goto startMenu
goto readConfig

:: Un-Deploying the metadata in destination org
:unDeployMetadata
Expand All @@ -341,4 +340,4 @@ if %errorlevel%==1 (
)
echo.
pause
goto startMenu
goto readConfig
Loading