Skip to main content

Command line application for global memo.

Project description

Install

pip install gmemo

usage

gmemo is command-line application.

$ gmemo --help
usage: gmemo [option | text]
Options and arguments:
-a     : Display all lines.
-h N   : Display N lines from the begining.
-t N   : Display N lines from the end.
$ gmemo
>>> --help
Commands:
-q        : Quit gmemo.
-s --save : Save curret memo.
--replace : Replace line.
--reset   : Initialize memo.
>>> global
>>> memo
>>> test
>>> -s
----------------
save succeeded!!
----------------
>>> -q
$ cd somewhere
$ gmemo
global
memo
test
>>> add
>>> text
>>> --save
----------------
save succeeded!!
----------------
>>> -q
$ gmemo
global
memo
test
add
text
>>> --replace
------------------------------
input line number for replace.
------------------------------
  1 | global
  2 | memo
  3 | test
  4 | add
  5 | text
>>> 3
-------------------
replace target line
-------------------
test
>>> replaced
-------------------
replace succeeded!!
-------------------
global
memo
replaced
add
text
>>> -q
$ gmemo add text from argument
$ gmemo
global
memo
test
add
text
add text from argument
>>> --reset
>>> reset
>>> -s
----------------
save succeeded!!
----------------
>>> -q
$ gmemo
reset
>>> --reset
>>> 1
>>> 2
>>> 3
>>> 4
>>> 5
>>> -s
----------------
save succeeded!!
----------------
>>> -q
$ gmemo -h 3
1
2
3
$ gmemo -t 2
4
5
$ gmemo -a
1
2
3
4
5

Memo location

Memo stored in home directory.

~/.global_memo_v0_0_1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmemo-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

gmemo-0.0.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page