Skip to content

Commit

Permalink
docs: update the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Nov 14, 2024
1 parent f84cc77 commit 6ad94db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ $ pnpm preview
## Commands

- `tnf build`: Build the project.
- `tnf config list/get/set/remove [name] [value]`: Manage the config.
- `tnf dev`: Start the development server.
- `tnf generate/g <type> <name>`: Generate a new page (or component and other types in the future).
- `tnf preview`: Preview the product after building the project.
- `tnf sync --mode=<mode>`: Sync the project to the temporary directory.
- `tnf config [ list | get | set | remove ] [name] [value]`: Quickly view and modify configurations through the command line.

## API

Expand Down
1 change: 1 addition & 0 deletions src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export async function setConfig({
},
});
}

export async function config({ context }: { context: Context }) {
const { _ } = context.argv;
const [, command, name, value] = _;
Expand Down

0 comments on commit 6ad94db

Please sign in to comment.