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

add an helper to switch working directory in a codeblock #87

Open
FabienArcellier opened this issue May 13, 2024 · 0 comments
Open

add an helper to switch working directory in a codeblock #87

FabienArcellier opened this issue May 13, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@FabienArcellier
Copy link
Owner

@alfred.command("cleandir")
def cleandir():
  with alfred.chdir('/tmp'):
    # clean the tmp directory

the working directory returns to its previous value when leaving the block.

@FabienArcellier FabienArcellier added the enhancement New feature or request label May 13, 2024
@FabienArcellier FabienArcellier self-assigned this May 13, 2024
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

1 participant