mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-12-22 08:16:25 +00:00
move default config file
This commit is contained in:
parent
59792316cb
commit
0802dedb47
@ -25,7 +25,8 @@ export const { _: commands, ...flags } = minimist(process.argv.slice(2), {
|
||||
string: ['l', 'b'],
|
||||
})
|
||||
|
||||
export const DEFAULT_CONFIG = 'config.yml'
|
||||
export const VERSION = '0.1'
|
||||
export const DEFAULT_CONFIG = '~/.autorestic.yml'
|
||||
export const INSTALL_DIR = '/usr/local/bin'
|
||||
export const CONFIG_FILE: string = resolve(flags.config || DEFAULT_CONFIG)
|
||||
export const VERBOSE = flags.verbose
|
||||
|
@ -4,7 +4,7 @@ import { createWriteStream, unlinkSync } from 'fs'
|
||||
import { arch, platform, tmpdir } from 'os'
|
||||
import { join, resolve } from 'path'
|
||||
|
||||
import { config, INSTALL_DIR } from './autorestic'
|
||||
import { config, INSTALL_DIR, CONFIG_FILE } from './autorestic'
|
||||
import { checkAndConfigureBackends, getEnvFromBackend } from './backend'
|
||||
import { backupAll } from './backup'
|
||||
import { Backends, Flags, Locations } from './types'
|
||||
@ -170,7 +170,7 @@ export const help = () => {
|
||||
console.log('\nAutorestic'.blue + ' - Easy Restic CLI Utility'
|
||||
+ '\n'
|
||||
+ '\nOptions:'.yellow
|
||||
+ '\n -c, --config [default=config.yml] Specify config file'
|
||||
+ `\n -c, --config Specify config file. Default: ${CONFIG_FILE}`
|
||||
+ '\n'
|
||||
+ '\nCommands:'.yellow
|
||||
+ '\n check [-b, --backend] [-a, --all] Check backends'
|
||||
|
Loading…
Reference in New Issue
Block a user