Skip to content

Commit

Permalink
Moved name & version keys to the top of [package] (FuelLabs#1485)
Browse files Browse the repository at this point in the history
* Moved name & version keys to the top of [package]

* Update for failing forc-documenter CI
  • Loading branch information
Braqzen authored May 6, 2022
1 parent 0bfaa66 commit de23c8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions docs/src/forc/commands/forc_completions.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ Homebrew stores bash completion files within the Homebrew directory.
With the `bash-completion` brew formula installed, run the command:

$ mkdir -p $(brew --prefix)/etc/bash_completion.d
$ forc completions --shell=bash > $(brew --prefix)/etc/bash_completion.d/forc.bash-
completion
$ forc completions --shell=bash > $(brew

`--prefix)/etc/bash_completion.d/forc.bash-completion`



FISH:

Expand Down
6 changes: 3 additions & 3 deletions forc/src/utils/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ pub(crate) fn default_manifest(project_name: &str, entry_type: &str) -> String {

format!(
r#"[project]
name = "{project_name}"
authors = ["{real_name}"]
entry = "{entry_type}"
license = "Apache-2.0"
name = "{project_name}"
[dependencies]
"#
Expand All @@ -23,11 +23,11 @@ pub(crate) fn default_tests_manifest(project_name: &str) -> String {

format!(
r#"[project]
name = "{project_name}"
version = "0.1.0"
authors = ["{real_name}"]
edition = "2021"
license = "Apache-2.0"
name = "{project_name}"
version = "0.1.0"
[dependencies]
fuel-gql-client = {{ version = "0.6", default-features = false }}
Expand Down

0 comments on commit de23c8a

Please sign in to comment.