Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crontab command ? #112

Open
KaKi87 opened this issue Dec 11, 2023 · 5 comments
Open

crontab command ? #112

KaKi87 opened this issue Dec 11, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@KaKi87
Copy link

KaKi87 commented Dec 11, 2023

Hi,

Since v0.23.0, crontab -l | batcat -l crontab works.

Would you be interested to make a script for it ?

Thanks

@eth-p
Copy link
Owner

eth-p commented Dec 13, 2023

For printing the crontab? Sure, that should be simple enough to do. I'll give it a go after my finals are over.

@eth-p eth-p added the enhancement New feature or request label Dec 13, 2023
@KaKi87
Copy link
Author

KaKi87 commented Dec 13, 2023

Thanks, and good luck !

@eth-p
Copy link
Owner

eth-p commented Feb 15, 2024

Hi @KaKi87! I did some digging around how bat-extras is packaged by people other than myself, and I'm having second thoughts about making simple scripts for extremely specific purposes. It appears that distros package every bat-extras script within the bat-extras package rather than splitting them out into individual packages [Arch] [Homebrew] [Fedora] [Nix], and I'm concerned that adding a bunch of extra utilities might cause bat-extras to be dropped from repositories if it becomes bloated.

Perhaps I could make a tutorial/guide to teach others how to use the provided utilities in bat-extras to create their own scripts?

In the meantime, a shell alias should work for your use case:

alias cronbat='crontab -l | batcat -l crontab'

@KaKi87
Copy link
Author

KaKi87 commented Feb 16, 2024

Hi,

That's funny I was just planning on asking you for news tomorrow. 😂

I'm having second thoughts about making simple scripts for extremely specific purposes. It appears that distros package every bat-extras script within the bat-extras package rather than splitting them out into individual packages

I'm sorry I don't know what you mean, and I don't know anything about packaging, plus I use Debian-based distros, nevertheless I would highly regret not having this.

Perhaps I could make a tutorial/guide to teach others how to use the provided utilities in bat-extras to create their own scripts?

In the meantime, a shell alias should work for your use case:

alias cronbat='crontab -l | batcat -l crontab'

I know I can do that but it's not what I'm looking for : what I want is a no-config solution, i.e. that just works on apt install for all users and without ~/.bashrc changes.

Thanks

@KaKi87
Copy link
Author

KaKi87 commented Jun 23, 2024

Hello ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants