Skip to content

Commit 5eecc7d

Browse files
Merge pull request #13 from codeperfectplus/dev
CLI Update
2 parents 491256c + afc95b9 commit 5eecc7d

10 files changed

Lines changed: 37 additions & 89 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,15 @@ assignees: ''
88
---
99
**Are you using latest code**
1010

11+
1112
**Describe the bug**
1213
A clear and concise description of what the bug is.
1314

1415

1516
**Expected behavior**
1617
A clear and concise description of what you expected to happen.
1718

18-
**Screenshots**
19-
If applicable, add screenshots to help explain your problem.
19+
2020

2121
**Pythonversion**
2222
- Python version
23-
24-
**Additional context**
25-
Add any other context about the problem here.

.github/workflows/publish.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/run-pytest.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
6+
## 1.0.7 -
7+
8+
- Added `version` command to show the current version of the CLI
9+
- Refactored the code for project metadata
10+
511
## [1.0.5] - 02-11-2022
612

713
- PYPI package is now available

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<img src="https://img.shields.io/readthedocs/movens">
99
</p>
1010

11+
## Table of Contents
12+
13+
- [Table of Contents](#table-of-contents)
1114
- [Introduction](#introduction)
1215
- [How To Run](#how-to-run)
1316
- [Documentation](#documentation)

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from datetime import datetime
22

33
project = 'movens'
4-
release = '1.0.6'
4+
release = '1.0.7'
55
templates_path = ['_templates']
66
source_suffix = ".rst"
77
master_doc = "index"

movens/about.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
__title__ = 'Movens'
2+
__package_name__ = 'movens'
3+
__version__ = '1.0.7'
4+
__description__ = "CLI tool to arrange files smartly"
5+
__email__ = "deepak008@live.com"
6+
__author__ = 'PyContributors'
7+
__github__ = 'https://github.com/Py-Contributors/movens'
8+
__pypi__ = 'https://pypi.org/project/movens'
9+
__license__ = 'MIT License'

movens/cli.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
from movens import start
1+
import sys
2+
sys.path.append('.')
3+
from movens.main import start
4+
from movens.about import __version__
25

36
import argparse
47

5-
parser = argparse.ArgumentParser(description="CLI tool to arrange files smartly")
8+
parser = argparse.ArgumentParser(prog="Movens", description="CLI tool to arrange files smartly")
69
parser.add_argument("-p", "--path", help="Path of the file to be moved", required=True)
10+
parser.add_argument("-v", "--version", action="version", version=__version__)
711

812
args = parser.parse_args()
913

14+
1015
def main():
1116
start(args.path)
17+
1218

1319
if __name__ == "__main__":
14-
main()
20+
main()

movens/main.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
from shutil import move
2-
from os import path
32
import os
43

5-
print(r'''
6-
______ __ ____ ____ __ ____ __
7-
/ ____/____ ____/ /___ / __ \ ___ _____ / __/___ _____ / /_ / __ \ / /__ __ _____
8-
/ / / __ \ / __ // _ \ / /_/ // _ \ / ___// /_ / _ \ / ___// __/ / /_/ // // / / // ___/
9-
/ /___ / /_/ // /_/ // __/ / ____// __// / / __// __// /__ / /_ / ____// // /_/ /(__ )
10-
\____/ \____/ \__,_/ \___/ /_/ \___//_/ /_/ \___/ \___/ \__/ /_/ /_/ \__,_//____/ 1.0.7
11-
12-
_________________________________________________________________________________________
13-
| || This Program will move files according to their extension in respective folders.|| |
14-
| ------------------------------------------------------------------------------------- |
15-
| // Version : 1.0.7 // |
16-
| // Programming : Python3 // |
17-
| // GitHub : py contributors // |
18-
| // Email : pycontributors@gmail.com // |
19-
| // Last Update : December 2022 // |
20-
| ------------------------------------------------------------------------------------- |
21-
''')
22-
234
folder_ex = {
245
'Programming Files': set(['ipynb', 'py', 'java', 'cs', 'js', 'vsix', 'jar', 'cc', 'ccc', 'html', 'xml', 'kt', 'c', 'css']),
256
'Compressed': set(['zip', 'rar', 'arj', 'gz', 'sit', 'sitx', 'sea', 'ace', 'bz2', '7z']),

setup.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import setuptools
2+
from movens.about import *
23

34
with open("README.md", "r") as fh:
45
long_description = fh.read()
56

67
setuptools.setup(
7-
name="movens",
8-
version="1.0.6",
9-
author="CodePerfectPlus",
10-
author_email="deepak008@live.com",
11-
description="CLI tool to arrange files smartly",
8+
name=__package_name__,
9+
version=__version__,
10+
author=__author__,
11+
author_email=__email__,
12+
description=__description__,
1213
long_description=long_description,
1314
long_description_content_type="text/markdown",
14-
url="https://github.com/Py-Contributors/FileMoverGUI",
15+
url=__github__,
1516
keywords="filemover, movefiles, organizefiles, organizefiles, filemovergui, filemover-gui",
1617
packages=setuptools.find_packages(),
1718
classifiers=[

0 commit comments

Comments
 (0)