-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 1.Bump version to 0.1.3; 2.add 'view config' command; 3.read c…
…onfig from path cwd or homedir; 4.add command argv 'init -g', will generate config file to homedir
- Loading branch information
1 parent
6530e05
commit 613758b
Showing
5 changed files
with
83 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { readDeployConfig } from '../utils.js'; | ||
|
||
export interface ViewConfigOptions { | ||
config: string; | ||
} | ||
|
||
export async function viewConfig(options: ViewConfigOptions): Promise<void> { | ||
const { config } = options; | ||
const result = await readDeployConfig(config); | ||
// depth: null 是 console.dir 方法的一个选项,表示对象的递归深度。设置为 null 意味着没有深度限制,所有嵌套的属性都会被完全展开和显示。 | ||
console.dir(result, { depth: null, colors: true }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters