ChaterJee 0.6.1__py3-none-any.whl → 0.6.3__py3-none-any.whl

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.
ChaterJee/ChaterJee.py CHANGED
@@ -499,7 +499,7 @@ class NoteLogs:
499
499
  def register():
500
500
  parser = argparse.ArgumentParser(description="I am ChaterJee register, I note your jobs for keeping logs.")
501
501
  parser.add_argument("command",type=str,help="command to run in your terminal")
502
- parser.add_argument("--jobname","-n",type=str,help="name of the job for logging",required=True)
502
+ parser.add_argument("--jobname",type=str,help="name of the job for logging",required=True)
503
503
  parser.add_argument("--logdir",default=None,type=str,help="log directory path")
504
504
  parser.add_argument("--logfile",default=None,type=str,help="log file path")
505
505
  parser.add_argument("--logimage",default=None,type=str,help="log image path")
@@ -512,7 +512,13 @@ def register():
512
512
 
513
513
  job = NoteLogs(args.jobname)
514
514
  job.save_job_JSON()
515
- with open(args.logfile, "w") as out, open("error.log", "w") as err:
515
+
516
+ if args.logfile is None:
517
+ logFile = f'{args.jobname}.log'
518
+ else:
519
+ logFile = args.logfile
520
+
521
+ with open(logFile, "w") as out, open("error.log", "w") as err:
516
522
  subprocess.Popen(
517
523
  [f"{args.command}"],
518
524
  stdout=out,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.6.1
3
+ Version: 0.6.3
4
4
  Summary: Communicate your project updates via Telegram Bot!
5
5
  Author: Pallab Dutta
6
6
  Author-email: pallab9997@gmail.com
@@ -0,0 +1,7 @@
1
+ ChaterJee/ChaterJee.py,sha256=hATz-m5qq6eUmXGixlr26mJ7CpEQCodhMwG-EMSp014,21561
2
+ ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
3
+ chaterjee-0.6.3.dist-info/METADATA,sha256=CE54gOyp7GkgMwqnX7LD1MVDkOM_3H8sWo2EVKuucus,6723
4
+ chaterjee-0.6.3.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
5
+ chaterjee-0.6.3.dist-info/entry_points.txt,sha256=MCOBbAWR8oBPX7h6flYn8SGUtoXTQR_qO6iLPRv4Zhc,95
6
+ chaterjee-0.6.3.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
7
+ chaterjee-0.6.3.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- ChaterJee/ChaterJee.py,sha256=ZdCX69qwzdOpoM4UqZzMxBs4Ff_eD3aQ-I5GZT6q89I,21459
2
- ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
3
- chaterjee-0.6.1.dist-info/METADATA,sha256=l1b-wOip9fkdZavM88skkA86xhnQXFGwUQSHXWBkoXU,6723
4
- chaterjee-0.6.1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
5
- chaterjee-0.6.1.dist-info/entry_points.txt,sha256=MCOBbAWR8oBPX7h6flYn8SGUtoXTQR_qO6iLPRv4Zhc,95
6
- chaterjee-0.6.1.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
7
- chaterjee-0.6.1.dist-info/RECORD,,