Skip to content

Language-agnostic Cookiecutter template for Cisco Sample Code projects.

License

Notifications You must be signed in to change notification settings

CiscoSE/cc-cisco-sample-code

Repository files navigation

Cisco Sample Code | Cookiecutter Project Template

Language-agnostic Cookiecutter template for Cisco Sample Code projects.

Every project needs a start. This Cookiecutter project template makes it easy for you to start a Cisco Sample Code project using the Cisco Sample Code License with minimal (but engaging!) project documentation.

Motivation

Every time you start a new project: You've got to go hunt down the license file. Create a README from scratch or go and find your last best version to remember everything you put in it. GitHub wants you to have a have a Contributing guide, a Code of Conduct, etc. ...moreover, where are you supposed to put all of these files again?

Wouldn't it be easier to just:

$ cookiecutter cc-cisco-sample-code
full_name [John Doe]:
email [jdoe@cisco.com]:
project_name [Cisco Sample Code Project]:
project_slug [cisco-sample-code-project]:
project_short_description [Cisco Sample Code project essential docs]:

$ tree -a cisco-sample-code-project/
cisco-sample-code-project/
├── .github
│   ├── ISSUE_TEMPLATE
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── PULL_REQUEST_TEMPLATE.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── HEADER
├── LICENSE
└── README.md

2 directories, 8 files

I thought so too.

Using the Project Template

The First Time

$ cookiecutter https://github.com/CiscoSE/cc-cisco-sample-code

...or using abbreviated syntax:

$ cookiecutter gh:CiscoSE/cc-cisco-sample-code

Thereafter

$ cookiecutter cc-cisco-sample-code

Installation

You don't have to know Python syntax or write Python code to create and use Cookiecutter templates, but you do need Python and the Cookiecutter tool installed on your workstation.

If you have a working Python development environment, installation is simple:

$ pip install cookiecutter

If you need a bit more help than that, see Installation in the Cookiecutter docs.

Credits

The following excellent resources were influencial in the creation of this project:

Who is this for?

This project template is for use by Cisco Systems Engineers who are creating example and demonstration code (aka. Cisco Sample Code) and sharing it with Cisco's customers and partners for use with Cisco products and services. The Cisco Sample Code License is for use in Cisco Repositories Only. It is not an Open Source license. The license should only be used by Cisco and/or its affiliates to post and share Cisco Sample Code.

About

Language-agnostic Cookiecutter template for Cisco Sample Code projects.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published