Skip to main content

Project initialization utility for Linux.

Project description

futurecandy

><=><

Linux utility for launching projects in a single command.

Install with pip install futurecandy.

Run with python3 -m futurecandy or add a command alias to your shell RC file with python3 -m futurecandy rc to run with command futurecandy.

futurecandy will create directory .futurecandy in the user's home directory. Edit configuration files and hooks there.

Run python3 -m futurecandy update or futurecandy update to fetch base hooks.

Hooks

Users may add their own hooks, by creating a file in directory ~/.futurecandy/hook, with file extension .hook.futurecandy.

Below is an example hook,

[meta]
name = "LICENSE"
description = "Hook for generating LICENSE files."

[exec]
script = "python3 -m futurecandy.hooks.License {}"
want_path = True
check_bin = False

Hooks must have a meta section with the name of the hook, and its description. This will appear on the hook selection menu.

Followed is the exec section with a command to run, defined with property script.

To specify the path to the project directory for the command, include {} as a placeholder in the script command, which will be replaced with the directory path, and set want_path to True.

If check_bin is true, futurecandy will split the script string by spaces into an array, then extract the first element as the script command for validation. If the "command" does not exist, the user will enter the shell to rectify the situation, before the command is re-ran.

Updating

Update the package through PIP, then remove and regenerate ~/.futurecandy/.

Acknowledgements

gitignore.hook.futurecandy based off of perpetualCreations/auto-gitignore forked from Mux-Mastermann/auto-gitignore.

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

futurecandy-1.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

futurecandy-1.2-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file futurecandy-1.2.tar.gz.

File metadata

  • Download URL: futurecandy-1.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.73-1-lts

File hashes

Hashes for futurecandy-1.2.tar.gz
Algorithm Hash digest
SHA256 3a5605904c8defacd85fe1ae4be9e31c4397e1edef0eb0a51e6c1eca5c97c78a
MD5 79c1dd8af60d8af46af4405adbce1c0e
BLAKE2b-256 8c90d595731efb9b262758ea665fc2dd81a6175fc23b4f06bde393c5485d8604

See more details on using hashes here.

File details

Details for the file futurecandy-1.2-py3-none-any.whl.

File metadata

  • Download URL: futurecandy-1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.73-1-lts

File hashes

Hashes for futurecandy-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bbce8a0c9fb10c1b8d71a0b4e6bfacdfd4b4e9a37903032ce3e83b64961317fd
MD5 1d0463718119df06e9b603dc41539ad0
BLAKE2b-256 0d6bbcf518557cee273a79f9fff363bced78b6ae9799427770bb0ba5302ba48a

See more details on using hashes here.

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