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

Proposal: Namespace "new" in commands for creating stuff #22

Closed
yosymfony opened this Issue Oct 22, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@yosymfony
Copy link
Member

yosymfony commented Oct 22, 2014

For creating new stuff like posts, plugins, site etc I propose a new namespace "new":

# For creating a new site
$ spress new:site

# For creating a new post
$ spress new:post

$ spress new:plugin

Currently we are using $ spress site:new for creating a site. For 1.x branch we should make a alias for site:new pointing to new:site. By default they commands are run in the interactive mode and ask questions to determine the necessary data.

new:post

Create a new post at the current site: new:post [--title="..."] [--date="current date"] [--tags=""] [--categories=""] [--no-interaction].
The output folder will be read from config.yml.

Available options

  • --title: The title of the post.
  • --date: The date assigned to the post with ISO 8601 format.
  • --tags: Tags list separed by white spaces.
  • --categories: Categories list separed by white spaces.

new:plugin

Create a new plugin at the current site:new:plugin [--name="..."] [--namespace=""] [--author=""] [--no-interaction].
The output folder will be read from config.yml.

Available options

  • --name: The name of the plugins should follow the pattern vendor-name/plugin-name.
  • --namespace: By default, the namespace is global.
  • --author: The author of the plugin.

@yosymfony yosymfony changed the title Namespace command "new" for creating stuff Namespace "new" in commands for creating stuff Oct 22, 2014

yosymfony referenced this issue Nov 20, 2014

Merge branch 'command-new-namespace':
* New commands for scaffolding plugins and posts.
* 'new' namespace for scaffolding commands.

@yosymfony yosymfony changed the title Namespace "new" in commands for creating stuff Proposal: Namespace "new" in commands for creating stuff Nov 21, 2014

@yosymfony yosymfony closed this Jul 26, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment