Skip to main content

FIle System Templates

Project description

# Cast > command line app for file system templates.

Cist can modify the structure of multiple directories at once. Provided these directories are registered for a common template - moving, renaming or deleting folders from that template will apply those changes to the directories (called instances of the template).

## Installation

Linux:

`sh git clone https://github.com/taesko/cast.git cd cast pip install . `

NOTE: This project has only been tested on linux. Installation is no different on other OS provided git and pip are installed, but it’s not guaranteed to work properly.

## Usage example

Use any existing directory to make a template out of it. `sh cast add template_name ./dir_path `

Register any other directory to that template as it’s instance `sh cast register template_name /directory/we/want/registered `

If the directory’s structure is not conformed to the template’s an error is raised. That is the instance must contain directories with the same as the template’s. (it is OK for the instance to have other directories as well)

Create additional directories inside a template: `sh cast add -m template_name various dir_names dir_names/similar to mkdir arguments `

Rename a directory inside a template `sh cast mv template_name relative_src_path relative_dst_path `

Remove a directory from a template `sh cast rm template_name multiple relative/directory/paths `

Commands that modify a templates structure all take the name of the template as a first argument and relative paths (considered from the root of the template not the current working directory) to the desired directories as additional arguments. Moving and renaming directories by default applies the same changes to instances of the template as well but this is not true for removing directories.

For full information: `sh cast --help `

## Development setup

There is no development branch (yet) and setup is nearly identical to user installation. `sh git clone https://github.com/taesko/cast.git cd cast pip install -e . `

## Release History

  • 0.0.1
    • Work in progress

## Meta

Author: Antonio Todorov – taeskow@gmail.com

Distributed under the MIT license. See LICENSE for more information.

## Contributing

Fork and submit a pull request.

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

fscast-0.0.2.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fscast-0.0.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file fscast-0.0.2.tar.gz.

File metadata

  • Download URL: fscast-0.0.2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fscast-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8ec51aabd875cd3ef3c44adbd913cca27f0ce354bd3d17b523fa5961c7e9689a
MD5 75ed94eca91af1f5c6b89975284f324f
BLAKE2b-256 ab6cacc549433696b06533b06890d8c73fcd8ff3cafaff8eb83e84f964458179

See more details on using hashes here.

File details

Details for the file fscast-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fscast-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 54ec54481855c24a2192dae8ebf4adc77c7121fdbc93c8533eea16e5dbc0af0a
MD5 e80d547a1860d0821c5cd04df7d086f9
BLAKE2b-256 81e87b03b430f005286d27a5c2a47345777a7ccaf2483f1abd93621bbd17f0cf

See more details on using hashes here.

Supported by

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