@fusionfroze/fset 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +15 -1
- package/commands/create.js +6 -0
- package/commands/ls.js +1 -1
- package/package.json +15 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FusionFroze
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -43,6 +43,8 @@ Application 1
|
|
|
43
43
|
Here you have to enter the path that **exactly** points to the location of the application.
|
|
44
44
|
Then you will be asked to enter URL if you need it.
|
|
45
45
|
|
|
46
|
+
(**Tip**: If you can't find the path, you can just drag and drop the app into your terminal to paste the path.)
|
|
47
|
+
|
|
46
48
|
```shell
|
|
47
49
|
$ fset create demo
|
|
48
50
|
Application 1
|
|
@@ -81,6 +83,18 @@ Press enter with an empty input to exit the input interface.
|
|
|
81
83
|
demo created successfully.
|
|
82
84
|
```
|
|
83
85
|
|
|
86
|
+
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.
|
|
87
|
+
|
|
88
|
+
```shell
|
|
89
|
+
$ fset create demo
|
|
90
|
+
...
|
|
91
|
+
✔ Add another app? Yes
|
|
92
|
+
Application 2
|
|
93
|
+
✔ Enter the path to the app: exit
|
|
94
|
+
|
|
95
|
+
demo created successfully.
|
|
96
|
+
```
|
|
97
|
+
|
|
84
98
|
### Opening an Environment
|
|
85
99
|
|
|
86
100
|
```shell
|
|
@@ -95,7 +109,7 @@ This command will open all the applications with set URL(s) or file(s) instantly
|
|
|
95
109
|
$ fset remove demo
|
|
96
110
|
```
|
|
97
111
|
|
|
98
|
-
You will be prompted once to confirm the operation. Once removed the action is irreversible.
|
|
112
|
+
You will be prompted once to confirm the operation. Once removed, the action is irreversible.
|
|
99
113
|
|
|
100
114
|
### List all the Environments set up in your machine
|
|
101
115
|
|
package/commands/create.js
CHANGED
|
@@ -34,6 +34,12 @@ async function createEnv(newEnv) {
|
|
|
34
34
|
message: chalk.greenBright("Enter the path to the app:"),
|
|
35
35
|
required: true,
|
|
36
36
|
});
|
|
37
|
+
|
|
38
|
+
if (appPath === "exit") {
|
|
39
|
+
gettingNewApplication = false;
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
let gettingURLs = true;
|
|
38
44
|
let urlNumber = 1;
|
|
39
45
|
const urls = [];
|
package/commands/ls.js
CHANGED
|
@@ -22,7 +22,7 @@ export default function ls({ long }) {
|
|
|
22
22
|
for (const application of space) {
|
|
23
23
|
const appName = extractAppName(application);
|
|
24
24
|
|
|
25
|
-
console.log(chalk.magentaBright("
|
|
25
|
+
console.log(chalk.magentaBright(" - " + appName));
|
|
26
26
|
|
|
27
27
|
if (long) {
|
|
28
28
|
console.log(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusionfroze/fset",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Launch your required environment instantly",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "FusionFroze",
|
|
@@ -21,5 +21,19 @@
|
|
|
21
21
|
},
|
|
22
22
|
"bin": {
|
|
23
23
|
"fset": "./index.js"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"fset",
|
|
27
|
+
"cli",
|
|
28
|
+
"terminal",
|
|
29
|
+
"productivity"
|
|
30
|
+
],
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/FusionFroze/fset"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/FusionFroze/fset/#readme",
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/FusionFroze/fset/issues"
|
|
24
38
|
}
|
|
25
39
|
}
|