Commit Graph

419 Commits

Author SHA1 Message Date
boyska
582cce9f66 ./tomb -v works fine
Fixed the "--verbose" alias: it should have been --version
2011-08-16 20:51:59 +02:00
boyska
32ee4c7c5d If no subcmd use a default. tomb -h or -v works 2011-08-16 20:44:18 +02:00
Anathema
20c1097281 feature request #21, now slam_tomb() tries to kill 3 times the pids holding the tomb, workflow:
1- kill -SIGUSR1
2- if there are remaining pids, wait 3 secs to get harder
3- kill -SIGTERM
4- if there are remaining pids, wait 3 secs to kill 'em all
5- kill -SIGKILL
2011-08-16 02:52:01 +02:00
Anathema
afd785be62 fixed issue #20: created slam_tomb() that take cares about killing and checking pids 2011-08-16 02:43:15 +02:00
Jaromil
21be9e204e Merge pull request #18 from boyska/only_optparsing
New CLI option parsing supports contextual options following commands.

ZSH functions are used to parse options. Further testing will follow.
2011-08-03 23:58:14 -07:00
boyska
a252f62fba Fix #14: problems with spaces in option arguments 2011-08-02 02:55:00 +02:00
boyska
d5ca1885ca [Optparsing] do a shift to delete subcommand 2011-08-02 02:55:00 +02:00
boyska
6495099344 [Optparsing] Support options in whatever position
However, it has a precondition that developers MUST respect:
  An option CAN'T have differente meanings/behaviour in different subcommands.
  For example, "-s" means "size" and accept an argument. If you are tempted to add
  an option "-s" (that means, for example "silent", and doesn't accept an argument)
This, however, make sense even from an usability point of view.
Also, option with optional argument are prohibited.

The technique is a "double scan": first, we scan options passing
_every_ possible subcommand options to zparseopts.
This way, we can distinguish between option argument and parameters.
So, we recognize which is the subcommand.
Then, parse again
2011-08-02 02:55:00 +02:00
boyska
d0e004412d Changing optparsing, tomb-open needs changes
It was putting the option BEFORE the subcommand.
However, the new method supports this only partially:
* Boolean options can be put before the subcommand
* Subcommand-specific options that take an argument can be put before the
  subcommand, only in the
  form  -kvalue ; using -k value gives an error
* Global options can always be put before the subcommand

Therefore, we'll say that options MUST go after the subcommand (to stay sure)
2011-08-02 02:55:00 +02:00
boyska
89d4b8d8d0 Optparsing: add other commands
Now all commands should have been ported
2011-08-02 02:55:00 +02:00
BoySka
c71bd81af2 New optparsing, with zparseopts
* parameters can be added where you want
* it's possible to use long options
* you can have "synonim" options
* it has potential for a recursive implementation
2011-08-02 02:54:17 +02:00
DJR
58e2b26694 Merge pull request #16 from davinerd/dependencies
all dependencies are checked for at startup
2011-08-01 13:32:54 -07:00
DJR
7b2fc78b19 Merge pull request #17 from davinerd/fix_issue3
fix issue #3
create now avoids ovewriting an existing tomb key: quits with error.
2011-08-01 13:31:50 -07:00
Anathema
d4de059e39 added cryptsetup and pinentry binary checks to check_bin() 2011-08-01 22:14:23 +02:00
Anathema
3f0d3dabfc fixed issue #3: a simple file check on the key is now performed before creating the tomb 2011-08-01 22:11:57 +02:00
Jaromil
b18ef6c27b webpage updates for new release 2011-05-29 17:22:26 +02:00
Jaromil
04120a58e0 documentation for release 2011-05-26 19:21:09 +02:00
Jaromil
556d300f5a no terminal 2011-05-26 19:04:46 +02:00
Jaromil
bdef8853d5 better close messages 2011-05-26 18:38:36 +02:00
Jaromil
ac0dcd9acc pinentry gtkrc icon 2011-05-26 18:26:46 +02:00
Jaromil
472189fb4b also key 2011-05-26 18:14:42 +02:00
Jaromil
17df4b6efb filetype icon in hicolor 2011-05-26 18:08:25 +02:00
Jaromil
0677d5f770 fixes share 2011-05-26 17:38:17 +02:00
Jaromil
69d91b6257 fixes 2011-05-26 17:27:34 +02:00
Jaromil
c47e48a96c fixes for distcheck 2011-05-26 17:01:03 +02:00
Jaromil
c5c2461eea fixing mime defaults and icon installations 2011-05-26 16:43:54 +02:00
Jaromil
5b8235201c TODO and VERSION update 2011-05-26 13:16:02 +02:00
Jaromil
bf9cc3070d refuses to open a tomb that is already open 2011-05-26 13:15:03 +02:00
Jaromil
e9e584a9c2 better dialogs, also for tomb-open 2011-05-26 13:00:30 +02:00
Jaromil
2c26903206 tomb list now output also size and usage information 2011-05-26 12:24:17 +02:00
Jaromil
3baa72b5a5 new -o flag to manually specify mount(8) options used in tomb open
updated documentation
2011-05-24 12:04:18 +02:00
Jaromil
130c98f1fe correctly set ownership to user on newly created tombs 2011-05-24 11:18:22 +02:00
Jaromil
41738e7626 make it possible to call tomb-open wizard when no X screen is present 2011-05-24 11:18:22 +02:00
Jaromil
16f0412817 Merge branch 'debian0' 2011-05-23 22:30:39 +02:00
Jaromil
eb9c45648a small TODO update 2011-05-23 22:29:38 +02:00
Jaromil
2e2fcabb0a fix to close a tomb that is open twice on the same mountpoint 2011-05-23 22:28:22 +02:00
Jaromil
ddff7a7895 documentation update for release 2011-05-15 20:24:27 +02:00
Jaromil
657f317ace updated task list 2011-05-15 20:15:59 +02:00
Jaromil
7d535e7491 kill only if status found running 2011-05-15 20:12:15 +02:00
Jaromil
85b01ddbcf kill the status tray when closed from cli 2011-05-15 20:11:01 +02:00
Jaromil
ccdd2aa4d6 fixed slam for a single tomb
still need to debug "tomb slam all"
2011-05-15 20:03:11 +02:00
Jaromil
7345596f79 better install in datadir
this should be compatible with packaging
2011-05-15 19:41:58 +02:00
Jaromil
a89185843e Merge branch 'master' into debian1 2011-05-15 19:34:03 +02:00
Jaromil
ddd41afc96 agian 2011-05-15 19:33:56 +02:00
Jaromil
0bf4c99a5e Merge branch 'master' into debian1 2011-05-15 19:32:32 +02:00
Jaromil
bc96c5e95e better datadir install again 2011-05-15 19:32:19 +02:00
Jaromil
dee6151215 new debian packaging 2011-05-15 19:29:46 +02:00
Jaromil
9497bbce42 better install in datadir
this should be compatible with packaging
2011-05-15 19:24:42 +02:00
Jaromil
a65cb293e7 Revert "fix mime installation also when xdg-mime is not present"
This reverts commit e8c7120fa4.

after testing we realize arch has xdg-mime

the xdg-utils package should be in build-deps
2011-05-13 18:01:53 +02:00
Jaromil
1affad00d5 fix permissions of new tomb
and notice if tomb hasn't right permissions

in future we should check permissions of tomb from the suid commandline
this way we can also change its permissions and make it ours
2011-05-13 16:31:25 +02:00