Currently this project is down ! I will rewrite this with go in near future
execute a program periodically, showing output fullscreen (watch) with scroll feature.
execute a program periodically, showing output fullscreen (watch) with scroll feature.
License: GNU General Public License v3.0
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner self.run()
File "/usr/lib64/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/xk/.local/bin/watchall", line 85, in update_lines self.refresh_screen(update_pad=True)
File "/home/xk/.local/bin/watchall", line 120, in refresh_screen
self.pad.addch(self.cur_output_lines[i][j]) _curses.error: add_wch() returned ERR
Hi there, it appears the package doesn't currently allow hyphens in command arguments.
For example:
python watchall.py squeue -u thejohnhoffer
prints a complaint from argparse that -u
is not recognized.
I would expect this script to only use argparse on flags that precede the command, as it should pass the remaining arguments unaltered to the command. I believe I've found a solution that's the same in python 2 and 3:
Replace
parser.add_argument('Args', metavar='Arguments', type=str, nargs='*', help='Command arguments')
with
parser.add_argument('Args', metavar='Arguments', type=str, nargs=argparse.REMAINDER, help='Command arguments')
This is a stronger nargs='*'
that also accepts flags untouched. I'm testing this now for my own application. Many thanks for writing a great package!
The version in pip is missing commit 0b6e39a
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.