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

ID:FPCO-25735;HOURS:2;DONE:90; Add timer in login command #277

Open
wants to merge 82 commits into
base: master
Choose a base branch
from
Open
Changes from 48 commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
54a7027
ID:FPCO-25735;HOURS:2;DONE:90; Add timer in login command
ManishPrajapati-GoFynd Dec 15, 2023
bc7f1a3
ID:FPCO-25735;HOURS:2;DONE:90; Remove testing fields
ManishPrajapati-GoFynd Dec 15, 2023
bbbf32c
ID:FPCO-25735;HOURS:2;DONE:90; Set timer to 2 min | Add debug logs | …
ManishPrajapati-GoFynd Dec 18, 2023
cc85e3a
ID:FPCO-25735;HOURS:2;DONE:90; Set timer to 5 min
ManishPrajapati-GoFynd Dec 19, 2023
ec774e9
ID:FPCO-25735;HOURS:2;DONE:90; Add debug logs and set 2 minute timeout
ManishPrajapati-GoFynd Jan 10, 2024
e3324a0
ID:FPCO-25735;HOURS:2;DONE:90; Throw error on timeout
ManishPrajapati-GoFynd Mar 5, 2024
67f597b
ID:FPCO-25735;HOURS:2;DONE:90; Merge branch 'master'
ManishPrajapati-GoFynd Mar 5, 2024
f14c0f8
ID:FPCO-25735;HOURS:2;DONE:90; Merge branch 'master'
ManishPrajapati-GoFynd Mar 5, 2024
7d2d106
ID:FPCO-25735;HOURS:2;DONE:90; remove temp theme
ManishPrajapati-GoFynd Mar 5, 2024
340e23b
ID:FPCO-25735;HOURS:2;DONE:90; add temp theme folder in git ignore
ManishPrajapati-GoFynd Mar 5, 2024
df5cb01
ID:FPCO-25735;HOURS:2;DONE:90; Add partners domain support in env set…
ManishPrajapati-GoFynd Mar 6, 2024
d64348a
ID:FPCO-25735;HOURS:2;DONE:90; Fix support for sandbox
ManishPrajapati-GoFynd Mar 6, 2024
e04db35
5.0.5
ManishPrajapati-GoFynd Mar 6, 2024
f45c130
Updated message
Mar 6, 2024
cfb3dcd
Merge branch 'FPCO-25735-timeout-in-fdk-login' of github.com:gofynd/f…
Mar 6, 2024
aa751d4
ID:FPCO-25735;HOURS:2;DONE:90; Fix error handling of timeout | Fix er…
ManishPrajapati-GoFynd Mar 7, 2024
06a96ff
Merge branch 'FPCO-25735-timeout-in-fdk-login' of github.com:gofynd/f…
ManishPrajapati-GoFynd Mar 7, 2024
7db2418
ID:FPCO-25735;HOURS:2;DONE:90; Update error message and sandbox handling
ManishPrajapati-GoFynd Mar 7, 2024
511cdc8
Error message updated
Mar 11, 2024
05aac93
ID:FPCO-25735;DONE:100;HOURS:4; Remove auth command
ManishPrajapati-GoFynd Mar 19, 2024
4835377
Merge branch 'master' of github.com:gofynd/fdk-cli into FPCO-25735-ti…
ManishPrajapati-GoFynd Mar 19, 2024
ce10b91
ID:FPCO-25735;DONE:100;HOURS:4; Fix test cases
ManishPrajapati-GoFynd Mar 20, 2024
ab20077
ID:FPCO-25735;DONE:100;HOURS:4; Update readme
ManishPrajapati-GoFynd Mar 20, 2024
8524e9f
ID:FPCO-25735;DONE:100;HOURS:4; update warning message
ManishPrajapati-GoFynd Mar 21, 2024
005da69
ID:FPCO-25735;DONE:100;HOURS:4; Fix option description
ManishPrajapati-GoFynd Mar 22, 2024
3112e76
ID:FPCO-25735;DONE:100;HOURS:4; Fix warning message
ManishPrajapati-GoFynd Apr 1, 2024
6780775
Merge branch 'master' of github.com:gofynd/fdk-cli into FPCO-25735-ti…
ManishPrajapati-GoFynd Apr 8, 2024
d7e2749
Improved extension preview-url command user experience
bhargavprajapatiFynd Jul 30, 2024
a1cf765
Updated ngrok tunnel related logs
bhargavprajapatiFynd Jul 30, 2024
dd5e71d
improved extension preview-url command
bhargavprajapatiFynd Jul 31, 2024
2da2449
minor improvements
bhargavprajapatiFynd Jul 31, 2024
23707a3
Add ext list and update fdk.ext.config read logic
jinalviranii Aug 2, 2024
50a2a82
Merge branch 'master' of github.com:gofynd/fdk-cli into improve-exten…
Aug 2, 2024
0484d62
branches added
Aug 2, 2024
7a1ca0a
ngork tunnel support removed
Aug 4, 2024
ce18778
handle submodule in extension template
ManishPrajapati-GoFynd Aug 5, 2024
c07649b
handle git command error
ManishPrajapati-GoFynd Aug 5, 2024
1ccda4d
add debug logs
ManishPrajapati-GoFynd Aug 5, 2024
01d2c34
preview URL changes
Aug 6, 2024
6ccdb78
create action in temporary folder and then move it to extension folde…
ManishPrajapati-GoFynd Aug 6, 2024
d9a25af
move files using cross OS compatible commands
ManishPrajapati-GoFynd Aug 6, 2024
6df2879
move function to utils with doc string comments | create branch variable
ManishPrajapati-GoFynd Aug 6, 2024
06fc4f3
fix install java frontend dependencies
ManishPrajapati-GoFynd Aug 6, 2024
00e6bc0
added --auto-update and --tunnel-url flag support and improved error …
bhargavprajapatiFynd Aug 6, 2024
5eb00ff
removed dead code
bhargavprajapatiFynd Aug 6, 2024
a98d78d
Update frontend port and add .env in java extension too
ManishPrajapati-GoFynd Aug 6, 2024
512e187
Update test case
ManishPrajapati-GoFynd Aug 6, 2024
2414053
Update frontend port to 8081 as env path is updated in frontend
ManishPrajapati-GoFynd Aug 6, 2024
b5eeb1d
Update base url in both env and application.yml if exist
ManishPrajapati-GoFynd Aug 6, 2024
257e463
add temp folder constant and stringify error
ManishPrajapati-GoFynd Aug 6, 2024
0f94147
Merge branch 'handle-submodule-in-extension-template--master' into im…
bhargavprajapatiFynd Aug 7, 2024
5144dc2
Added extension config file support
bhargavprajapatiFynd Aug 7, 2024
28039c7
changed extension context file name
bhargavprajapatiFynd Aug 7, 2024
41d9367
Fixed extension preview url test cases
bhargavprajapatiFynd Aug 7, 2024
4eadd8f
Remove updating env in extension init and setup command
bhargavprajapatiFynd Aug 7, 2024
16157c8
Updated testcases for .env file change
bhargavprajapatiFynd Aug 7, 2024
44b3452
Adding extension.context file on ext init and setup
bhargavprajapatiFynd Aug 7, 2024
7803a35
fix: added proper api secret in context file
bhargavprajapatiFynd Aug 7, 2024
2f6441e
Added new ext tunnel command
bhargavprajapatiFynd Aug 7, 2024
07c94b7
Readme.md updated
Aug 7, 2024
323927f
6.0.0
Aug 7, 2024
00f4f08
6.0.0-beta.0
Aug 7, 2024
501be90
6.0.0-beta.1
Aug 7, 2024
248ad18
added missing dependency
Aug 7, 2024
f6d8c1d
6.0.0-beta.2
Aug 7, 2024
0bfb4d2
Made node+react as first option in ext init and setup command
bhargavprajapatiFynd Aug 8, 2024
b7930a2
add template support in init extension command
ManishPrajapati-GoFynd Aug 8, 2024
56f6d94
- Added --reset flag
bhargavprajapatiFynd Aug 8, 2024
08a1f1f
Ask developer to select or create extension on init command
ManishPrajapati-GoFynd Aug 8, 2024
8bfbe40
Enhancement on init command
ManishPrajapati-GoFynd Aug 8, 2024
f26898c
Added sticky preview url
bhargavprajapatiFynd Aug 8, 2024
d9741ef
Merge branch 'improve-extension-preview-url-command' of github.com:go…
ManishPrajapati-GoFynd Aug 8, 2024
7db84b3
Fix test cases
ManishPrajapati-GoFynd Aug 9, 2024
e951ac5
Fix mock argument
ManishPrajapati-GoFynd Aug 9, 2024
440f911
Merge branch 'master' of github.com:gofynd/fdk-cli into FPCO-25735-ti…
ManishPrajapati-GoFynd Aug 9, 2024
7a2f354
Merge branch 'improve-extension-preview-url-command' of github.com:go…
ManishPrajapati-GoFynd Aug 9, 2024
2defeb4
Updating messages and removing extra lines
ManishPrajapati-GoFynd Aug 9, 2024
74fa3ce
Update test case
ManishPrajapati-GoFynd Aug 9, 2024
966aaf1
revert timer changes
bhargavprajapatiFynd Aug 20, 2024
ac7eec1
Merge branch 'master' into FPCO-25735-timeout-in-fdk-login
bhargavprajapatiFynd Aug 20, 2024
5a97ca2
Merge branch 'master' into FPCO-25735-timeout-in-fdk-login
bhargavprajapatiFynd Aug 20, 2024
f8185fb
only run auth file
bhargavprajapatiFynd Aug 20, 2024
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
62 changes: 46 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -79,8 +79,9 @@ ___
| Command | Description |
| ------------- |-------------|
| [init](#extension-init) | Utilize this command to set up a new extension locally, leveraging existing templates of your choice. |
| [setup](#extension-setup) | Configure your extension locally using the existing API Key and API Secret provided for the extension inside the partners panel.
| [preview-url](#extension-preview-url) | Create a tunnel and provide a link to tryout extension on development company
| [setup](#extension-setup) | Configure your extension locally using the existing API Key and API Secret provided for the extension inside the partners panel. |
| [preview](#extension-preview-url) | Start the extension development server and provide a tunnel URL to preview the extension on the development company. |
| [tunnel](#extension-tunnel) | Create a tunnel on the specified port number to enable remote access for development and testing. |
| [launch-url](#extension-launch-url) | Get/set extension's lanuch url |

### Partner Commands
@@ -352,13 +353,22 @@ fdk extension init [options]
| Option | Description |
| ------------- |-------------|
| --target-dir | Target Directory |
| --template | Specify the template you want to use to create the extension |
| --help | Show help |
| --verbose | enable debug mode |

#### **Example**
```sh
fdk extension init --target-dir [your-directory]
```
```sh
fdk extension init --template [template-name]
```
You can pass the following values for the template:
1. node-vue
2. node-react
3. java-vue
4. java-react
___
<div id="extension-setup"></div>

@@ -384,48 +394,68 @@ ___

<div id="extension-preview-url"></div>

#### **preview-url**
#### **preview**
This command will return the preview URL, which the user can use to launch or install the extension.

#### ****Syntax****
```sh
fdk extension preview-url [options]
fdk extension preview [options]
```

#### **Command Options**
| Option | Description |
| ----------|---------------|
| -p, --port | Port on which Extension is running |
| --company-id | specify company id |
| --company-id | Unique identifier of your company |
| --api-key | Extension API key |
| --access-token | Partner Access Token |
| --use-tunnel | Pass which tunneling tool you want to use (Default: `cloudflared`) |
| --update-authtoken | Pass this to update your ngrok authentication token |
| --tunnel-url | Specify a manual Tunnel URL to bypass automatic tunnel creation. |
| --no-auto-update | Disables auto-updating of tunnel URL as extension launch url on partners panel |
| --reset | Resets the extension's context data, prompting you to re-enter all required details. Useful for a fresh start! |
| --help | Show help |
| --verbose | enable debug mode |
| --verbose | Enables debug mode, providing detailed logs for troubleshooting. |

#### **Example**
```sh
fdk extension preview-url --port 3000
fdk extension preview
```
```sh
fdk extension preview-url -p 3000
fdk extension preview --tunnel-url https://broke-casey-eric-recommendations.trycloudflare.com
```
```sh
fdk extension preview-url -p 3000 --company-id 999
fdk extension preview --company-id 999
```

By default, **cloudflared** will be used as the tunneling tool. To use a different tool, pass the `--use-tunnel` option. Currently, we support **cloudflared** and **ngrok** as tunneling tools. You will be prompted to enter your authentication token if you choose ngrok.
- **Cloudflared** will be used as the tunneling tool.

- If you pass Tunnel URL, it will not created new tunnel and use the passed url as tunnel url.

___


<div id="extension-tunnel"></div>

#### **tunnel**
This command will start a tunnel using cloudflare by which you can access your local port on public url

#### ****Syntax****
```sh
fdk extension preview-url -p 3000 --use-tunnel ngrok
fdk extension tunnel [options]
```
Pass `--update-authtoken` flag to update your ngrok authentication token.

#### **Command Options**
| Option | Description |
| ----------|---------------|
| --port | Port (required) |
| --help | Show help |
| --verbose | enable debug mode |

#### **Example**
```sh
fdk extension preview-url -p 3000 --use-tunnel ngrok --update-authtoken
fdk extension tunnel --port 8080
```

___

<div id="extension-launch-url"></div>

#### **launch-url**
Loading
Loading