@fusionfroze/fset 1.0.0 → 1.0.1
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/README.md +43 -43
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,17 +11,17 @@ You use different _applications_ with different _file(s)_ or _tab(s)_ for differ
|
|
|
11
11
|
**Install globally:**
|
|
12
12
|
|
|
13
13
|
```shell
|
|
14
|
-
|
|
14
|
+
$ npm i -g @fusionfroze/fset
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
**For local development:**
|
|
18
18
|
|
|
19
19
|
```shell
|
|
20
|
-
|
|
20
|
+
$ npm install
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
```shell
|
|
24
|
-
|
|
24
|
+
$ npm link
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## How to use it
|
|
@@ -29,62 +29,62 @@ You use different _applications_ with different _file(s)_ or _tab(s)_ for differ
|
|
|
29
29
|
### Setting up a new Environment
|
|
30
30
|
|
|
31
31
|
```shell
|
|
32
|
-
|
|
32
|
+
$ fset create demo
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
This will open the input interface
|
|
36
36
|
|
|
37
37
|
```shell
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
$ fset create demo
|
|
39
|
+
Application 1
|
|
40
|
+
? Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
|
|
41
41
|
```
|
|
42
42
|
|
|
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
46
|
```shell
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
$ fset create demo
|
|
48
|
+
Application 1
|
|
49
|
+
✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
|
|
50
|
+
Enter URL(s) or file path(s) you want the app to open with.
|
|
51
|
+
Press enter with an empty input to exit the input interface.
|
|
52
|
+
? URL-1: https://clandor.com
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
You can exit the input interface for the current application by pressing **enter** with an **empty input**.
|
|
56
56
|
|
|
57
57
|
```shell
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
$ fset create demo
|
|
59
|
+
Application 1
|
|
60
|
+
✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
|
|
61
|
+
Enter URL(s) or file path(s) you want the app to open with.
|
|
62
|
+
Press enter with an empty input to exit the input interface.
|
|
63
|
+
✔ URL-1: https://clandor.com
|
|
64
|
+
✔ URL-2:
|
|
65
|
+
? Add another app? (Y/n)
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
Now you will be given a choice, you can either add a new application or can exit the interface by entering **n**.
|
|
69
69
|
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.
|
|
70
70
|
|
|
71
71
|
```shell
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
72
|
+
$ fset create demo
|
|
73
|
+
Application 1
|
|
74
|
+
✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
|
|
75
|
+
Enter URL(s) or file path(s) you want the app to open with.
|
|
76
|
+
Press enter with an empty input to exit the input interface.
|
|
77
|
+
✔ URL-1: https://clandor.com
|
|
78
|
+
✔ URL-2:
|
|
79
|
+
✔ Add another app? No
|
|
80
|
+
|
|
81
|
+
demo created successfully.
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
### Opening an Environment
|
|
85
85
|
|
|
86
86
|
```shell
|
|
87
|
-
|
|
87
|
+
$ fset open demo
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
This command will open all the applications with set URL(s) or file(s) instantly.
|
|
@@ -92,7 +92,7 @@ This command will open all the applications with set URL(s) or file(s) instantly
|
|
|
92
92
|
### Removing an Environment
|
|
93
93
|
|
|
94
94
|
```shell
|
|
95
|
-
|
|
95
|
+
$ fset remove demo
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
You will be prompted once to confirm the operation. Once removed the action is irreversible.
|
|
@@ -100,35 +100,35 @@ You will be prompted once to confirm the operation. Once removed the action is i
|
|
|
100
100
|
### List all the Environments set up in your machine
|
|
101
101
|
|
|
102
102
|
```shell
|
|
103
|
-
|
|
103
|
+
$ fset ls
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
This will list all the Environments with the applications in each of them.
|
|
107
107
|
Output -
|
|
108
108
|
|
|
109
109
|
```shell
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
demo
|
|
111
|
+
--Google Chrome
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
To see detailed list, with application path and URL(s) or file(s) for each application, type this command -
|
|
115
115
|
|
|
116
116
|
```shell
|
|
117
|
-
|
|
117
|
+
$ fset ls -l
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
or
|
|
121
121
|
|
|
122
122
|
```shell
|
|
123
|
-
|
|
123
|
+
$ fset ls -long
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
Output -
|
|
127
127
|
|
|
128
128
|
```shell
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
demo
|
|
130
|
+
--Google Chrome
|
|
131
|
+
> App Path: "C:\Users\Public\Desktop\Google Chrome.lnk"
|
|
132
|
+
> URls:
|
|
133
|
+
1: https://clandor.com
|
|
134
134
|
```
|