Skip to content

Commit 5d81831

Browse files
committed
Final polish
1 parent 592298a commit 5d81831

File tree

4 files changed

+9
-54
lines changed

4 files changed

+9
-54
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,17 @@ line interface, having syntax similar to cli's linux, with options args and help
4545

4646
Aborted!
4747

48-
### Lash Configurations
49-
50-
From version 1.1.0, **configurations** were implemented in the
51-
package, which can be edited manually in */lash/Exportables/config.py*
52-
You can get the config.py path with `lash getconfig` command
5348

49+
# Release notes
5450

51+
## v1.2.5 - Web scraping
5552

56-
# Release notes
53+
* Read Wikipedia articles/summaries with `wiki`
54+
* Read top news using `news` (Google News)
55+
* Yt moved to web group, new feature: -list
56+
* Command new removed
57+
* Command taskkiler removed
58+
* Command Getconfig removed
5759

5860
## v1.2.4 - Media support
5961

@@ -135,8 +137,4 @@ You can get the config.py path with `lash getconfig` command
135137
* * Sub-command: `exec` -> Execute a task from determined moment of day
136138
* * Sub-command: `wait` -> Wait x time, run a task once and exit
137139

138-
139140
[image]: Images/lash_print.png
140-
141-
142-

lash/ExtraTools/bonus.py

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
import click
2-
from lash.Exportables.config import config
3-
from lash.executor import abs_path_config
4-
from os import system, name
52
from random import sample, randint
63
from time import sleep
74
import datetime
85

9-
config = config()
10-
11-
12-
@click.command(help='Get the config.py path')
13-
def getConfig():
14-
print(f'\n[ {abs_path_config()} ]')
15-
16-
176
@click.command(help='Generate random sequences')
187
@click.option('-c', type=click.INT, default=5, show_default=True, help='Number of characters in random output')
198
@click.option('-n', is_flag=True, help='Enable numbers', default=True, show_default=True)
@@ -44,36 +33,8 @@ def random(c, n, l, s, ul):
4433
print('Error: Please enable something to be randomized')
4534

4635

47-
@click.command()
48-
def taskkiller():
49-
"""\b
50-
Kill multiple processes with single command
51-
52-
\b
53-
This command is automation to close processes, to use it, you need
54-
to put the process names in the configuration file so that they
55-
can be processed one by one by the function.
56-
\b
57-
You can find the file in the package's installation folder, in the path
58-
lash/Exportables/config.py, there you will have instructions on how to use it.
59-
"""
60-
if len(config['black_list']) == 0:
61-
print(f"""
62-
- None process name funded on <black_list> value
63-
To use this command correctly, you need add the processes names manually in\n[{abs_path_config()}]
64-
To more details use --help option
65-
""")
66-
if name == 'nt':
67-
for p in config['black_list']:
68-
system(f'taskkill /F /IM {p} /T') if name == 'nt' else system(f'pkill {p}')
69-
else:
70-
...
71-
print('\n<FUNCTION END>')
72-
73-
7436
import psutil
7537

76-
7738
def getListOfProcessSortedByMemory():
7839
listOfProcObjects = []
7940
for proc in psutil.process_iter():

lash/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ def Global():
1818

1919

2020
# Global Commands
21-
Global.add_command(getConfig)
2221
Global.add_command(random)
2322
Global.add_command(organize)
2423
Global.add_command(autoclick)
2524
Global.add_command(keyhold)
26-
Global.add_command(taskkiller)
2725
Global.add_command(monitor)
2826

2927
# Groups declaration

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setuptools.setup(
66
name='lash',
7-
version='1.2.4',
7+
version='1.2.5',
88
license='GNU GPLv3',
99
author='Kevin Emmanuel',
1010
author_email='kevboyz@pm.me',
@@ -70,5 +70,3 @@
7070
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)'
7171
]
7272
)
73-
74-

0 commit comments

Comments
 (0)