Skip to content

Create missing config directories and files on startup #49

@esavier

Description

@esavier

Simple feature, but i don't know how to bite it from rust standpoint.

Technically, it would be awesome to create the default config file if it's missing. This also entails creating default directories. It may be done on setup, but since horust is working on top of cargo, cargo install just copies exec to bin location.

Right now, without it, Horust just bails out with ENOENT.

can be done either on startup or installation

  • dump default config to file if it not exists (/etc/horust/horust.toml)
  • create directory tree (/etc/horust/xxx )

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions