@fusionfroze/fset
v1.0.2
Published
Launch your required environment instantly
Maintainers
Readme
FSET
You use different applications with different file(s) or tab(s) for different tasks. Switching between them means closing everything and starting over manually.
fset does this for you with a single command.
Installation
Prerequisite: Node.js v18+
Install globally:
$ npm i -g @fusionfroze/fsetFor local development:
$ npm install$ npm linkHow to use it
Setting up a new Environment
$ fset create demoThis will open the input interface
$ fset create demo
Application 1
? Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"Here you have to enter the path that exactly points to the location of the application. Then you will be asked to enter URL if you need it.
(Tip: If you can't find the path, you can just drag and drop the app into your terminal to paste the path.)
$ fset create demo
Application 1
✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
Enter URL(s) or file path(s) you want the app to open with.
Press enter with an empty input to exit the input interface.
? URL-1: https://clandor.comYou can exit the input interface for the current application by pressing enter with an empty input.
$ fset create demo
Application 1
✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
Enter URL(s) or file path(s) you want the app to open with.
Press enter with an empty input to exit the input interface.
✔ URL-1: https://clandor.com
✔ URL-2:
? Add another app? (Y/n)Now you will be given a choice, you can either add a new application or can exit the interface by entering n. If you choose n, a success message will show that your new environment is set up successfully. Or, alternatively you can continue adding more application requried for the task.
$ fset create demo
Application 1
✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
Enter URL(s) or file path(s) you want the app to open with.
Press enter with an empty input to exit the input interface.
✔ URL-1: https://clandor.com
✔ URL-2:
✔ Add another app? No
demo created successfully.If you accidentally press y when you don't want to add any more applications, you can simply type exit to exit the input interface and save the environment you are creating.
$ fset create demo
...
✔ Add another app? Yes
Application 2
✔ Enter the path to the app: exit
demo created successfully.Opening an Environment
$ fset open demoThis command will open all the applications with set URL(s) or file(s) instantly.
Removing an Environment
$ fset remove demoYou will be prompted once to confirm the operation. Once removed, the action is irreversible.
List all the Environments set up in your machine
$ fset lsThis will list all the Environments with the applications in each of them. Output -
demo
--Google ChromeTo see detailed list, with application path and URL(s) or file(s) for each application, type this command -
$ fset ls -lor
$ fset ls -longOutput -
demo
--Google Chrome
> App Path: "C:\Users\Public\Desktop\Google Chrome.lnk"
> URls:
1: https://clandor.com